Home | History | Annotate | Download | only in draw

Lines Matching full:golden

201 	// Since golden is a newly allocated image, we don't have to check if the
202 // input source and mask images and the output golden image overlap.
209 golden := image.NewRGBA(image.Rect(0, 0, b.Max.X, b.Max.Y))
237 golden.Set(x, y, color.RGBA64{
245 return golden.SubImage(b)
265 golden := makeGolden(dst, image.Rect(0, 0, 16, 16), test.src, image.ZP, test.mask, image.ZP, test.op)
267 if !b.Eq(golden.Bounds()) {
268 t.Errorf("draw %v %s: bounds %v versus %v", r, test.desc, dst.Bounds(), golden.Bounds())
281 // Check that the resultant dst image matches the golden output.
284 if !eq(dst.At(x, y), golden.At(x, y)) {
285 t.Errorf("draw %v %s: at (%d, %d), %v versus golden %v", r, test.desc, x, y, dst.At(x, y), golden.At(x, y))
304 golden := makeGolden(dst, b, src, src.Bounds().Min, nil, image.ZP, op)
305 if !b.Eq(golden.Bounds()) {
306 t.Errorf("drawOverlap xoff=%d,yoff=%d: bounds %v versus %v", xoff, yoff, dst.Bounds(), golden.Bounds())
311 // Check that the resultant dst image matches the golden output.
314 if !eq(dst.At(x, y), golden.At(x, y)) {
315 t.Errorf("drawOverlap xoff=%d,yoff=%d: at (%d, %d), %v versus golden %v", xoff, yoff, x, y, dst.At(x, y), golden.At(x, y))