mirror of
https://github.com/golang/go.git
synced 2024-09-29 22:37:06 +00:00
image/jpeg: fix build
R=golang-dev CC=golang-dev https://golang.org/cl/5020045
This commit is contained in:
parent
1a35450a10
commit
fa767ff231
@ -90,7 +90,7 @@ func TestWriter(t *testing.T) {
|
||||
|
||||
func BenchmarkEncodeRGBOpaque(b *testing.B) {
|
||||
b.StopTimer()
|
||||
img := image.NewRGBA(640, 480)
|
||||
img := image.NewRGBA(image.Rect(0, 0, 640, 480))
|
||||
// Set all pixels to 0xFF alpha to force opaque mode.
|
||||
bo := img.Bounds()
|
||||
rnd := rand.New(rand.NewSource(123))
|
||||
|
Loading…
Reference in New Issue
Block a user