Lines Matching refs:pixels
19 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_read_pixels() local
20 memset(pixels.get(), 0, sizeof(uint32_t)*pixelCnt); in test_read_pixels()
23 pixels.get()); in test_read_pixels()
28 if (pixels.get()[i] != expectedPixelValues[i]) { in test_read_pixels()
30 " got 0x%08x.", i, expectedPixelValues[i], pixels.get()[i]); in test_read_pixels()
39 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_write_pixels() local
42 pixels.get()[y * rectangleTexture->width() + x] = GrColorPackRGBA(x, y, x + y, x * y); in test_write_pixels()
47 pixels.get()); in test_write_pixels()
51 test_read_pixels(reporter, context, rectangleTexture, pixels.get()); in test_write_pixels()
70 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_copy_surface_dst() local
73 pixels.get()[y * rectangleTexture->width() + x] = GrColorPackRGBA(y, x, x * y, x *+ y); in test_copy_surface_dst()
83 copySrcDesc, SkBudgeted::kYes, pixels.get(), 0)); in test_copy_surface_dst()
86 test_read_pixels(reporter, context, rectangleTexture, pixels.get()); in test_copy_surface_dst()
144 GrColor pixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
147 pixels[y * kWidth + x] = y * kWidth + x; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
154 pixels); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
181 refPixels[y * kWidth + x] = pixels[y0 * kWidth + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()