Lines Matching refs:dstContext
44 GrSurfaceContext* dstContext, bool expectedToWork, in test_write_pixels() argument
46 int pixelCnt = dstContext->width() * dstContext->height(); in test_write_pixels()
48 for (int y = 0; y < dstContext->width(); ++y) { in test_write_pixels()
49 for (int x = 0; x < dstContext->height(); ++x) { in test_write_pixels()
50 pixels.get()[y * dstContext->width() + x] = in test_write_pixels()
55 SkImageInfo ii = SkImageInfo::Make(dstContext->width(), dstContext->height(), in test_write_pixels()
57 bool write = dstContext->writePixels(ii, pixels.get(), 0, 0, 0); in test_write_pixels()
70 test_read_pixels(reporter, dstContext, pixels.get(), testName); in test_write_pixels()
90 sk_sp<GrSurfaceContext> dstContext( in test_copy_from_surface() local
93 test_read_pixels(reporter, dstContext.get(), expectedPixelValues, testName); in test_copy_from_surface()
98 GrSurfaceContext* dstContext, const char* testName) { in test_copy_to_surface() argument
100 int pixelCnt = dstContext->width() * dstContext->height(); in test_copy_to_surface()
102 for (int y = 0; y < dstContext->width(); ++y) { in test_copy_to_surface()
103 for (int x = 0; x < dstContext->height(); ++x) { in test_copy_to_surface()
104 pixels.get()[y * dstContext->width() + x] = in test_copy_to_surface()
112 dstContext->surfPriv().getContext(), isRT, dstContext->width(), in test_copy_to_surface()
113 dstContext->height(), GrColorType::kRGBA_8888, origin, pixels.get(), 0); in test_copy_to_surface()
114 dstContext->copy(src.get()); in test_copy_to_surface()
115 test_read_pixels(reporter, dstContext, pixels.get(), testName); in test_copy_to_surface()