Skip to content

Commit

Permalink
draw: merge draw_go117.go into draw.go
Browse files Browse the repository at this point in the history
This can be done as Go 1.21 and 1.20 are the supported
versions by now, and Go 1.16 is long since unsupported.

Change-Id: Ib90f796d6c38dbb9ffd99d56faf344ee9784f9bc
Reviewed-on: https://go-review.googlesource.com/c/image/+/526896
Reviewed-by: Dmitri Shuralyov <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Nigel Tao (INACTIVE; USE @golang.org INSTEAD) <[email protected]>
Auto-Submit: Dmitri Shuralyov <[email protected]>
Reviewed-by: Nigel Tao <[email protected]>
  • Loading branch information
dmitshur authored and gopherbot committed Sep 8, 2023
1 parent 4aa0222 commit 491771c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
6 changes: 6 additions & 0 deletions draw/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ func (floydSteinberg) Draw(dst Image, r image.Rectangle, src image.Image, sp ima
// Image is an image.Image with a Set method to change a single pixel.
type Image = draw.Image

// RGBA64Image extends both the Image and image.RGBA64Image interfaces with a
// SetRGBA64 method to change a single pixel. SetRGBA64 is equivalent to
// calling Set, but it can avoid allocations from converting concrete color
// types to the color.Color interface type.
type RGBA64Image = draw.RGBA64Image

// Op is a Porter-Duff compositing operator.
type Op = draw.Op

Expand Down
26 changes: 0 additions & 26 deletions draw/draw_go117.go

This file was deleted.

0 comments on commit 491771c

Please sign in to comment.