1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:54:42 -07:00
go/src/image
Nigel Tao 40a1516a09 image/draw: fix double-draw when the dst is paletted.
The second (fallback) draw is a no-op, but it's a non-trivial amount of work.

Fixes #11550.

benchmark               old ns/op     new ns/op     delta
BenchmarkPaletted-4     16301219      7309568       -55.16%

Change-Id: Ic88c537b2b0c710cf517888f3dd15cb702dd142f
Reviewed-on: https://go-review.googlesource.com/11858
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-03 03:08:40 +00:00
..
color image/color: have Palette.Index honor alpha for closest match, not just 2015-04-16 23:52:41 +00:00
draw image/draw: fix double-draw when the dst is paletted. 2015-07-03 03:08:40 +00:00
gif image/gif: accept LZW encodings that do not have an explicit end marker. 2015-06-30 03:47:51 +00:00
internal/imageutil image: spell coordinate consistently, without the hyphen. 2015-04-16 01:21:31 +00:00
jpeg all: switch to the new deprecation convention 2015-06-18 19:16:23 +00:00
png image/png: don't silently swallow io.ReadFull's io.EOF error when it 2015-04-23 06:39:56 +00:00
testdata image/jpeg: support chroma hv values other than 0x11. 2015-03-11 00:10:09 +00:00
decode_example_test.go
decode_test.go image/jpeg: support chroma hv values other than 0x11. 2015-03-11 00:10:09 +00:00
format.go
geom_test.go image: change Rectangle.Eq to return true for all empty rectangles, even 2015-02-18 23:50:09 +00:00
geom.go image: make Rectangle implement Image. 2015-03-04 00:03:46 +00:00
image_test.go
image.go image: add image.CMYK and color.CMYK types. 2015-02-16 00:08:49 +00:00
names.go
ycbcr_test.go image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410. 2015-02-26 00:14:16 +00:00
ycbcr.go image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410. 2015-02-26 00:14:16 +00:00