Lines Matching refs:pixels
20 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_read_pixels() local
21 memset(pixels.get(), 0, sizeof(uint32_t)*pixelCnt); in test_read_pixels()
25 bool read = srcContext->readPixels(ii, pixels.get(), 0, 0, 0); in test_read_pixels()
31 if (pixels.get()[i] != expectedPixelValues[i]) { in test_read_pixels()
33 testName, i, expectedPixelValues[i], pixels.get()[i]); in test_read_pixels()
43 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_write_pixels() local
46 pixels.get()[y * dstContext->width() + x] = in test_write_pixels()
53 bool write = dstContext->writePixels(ii, pixels.get(), 0, 0, 0); in test_write_pixels()
66 test_read_pixels(reporter, dstContext, pixels.get(), testName); in test_write_pixels()
96 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_copy_to_surface() local
99 pixels.get()[y * dstContext->width() + x] = in test_copy_to_surface()
116 SkBudgeted::kYes, pixels.get(), 0)); in test_copy_to_surface()
119 test_read_pixels(reporter, dstContext, pixels.get(), testName); in test_copy_to_surface()