Lines Matching refs:dstContext
40 GrSurfaceContext* dstContext, bool expectedToWork,
42 int pixelCnt = dstContext->width() * dstContext->height();
44 for (int y = 0; y < dstContext->width(); ++y) {
45 for (int x = 0; x < dstContext->height(); ++x) {
46 pixels.get()[y * dstContext->width() + x] =
51 SkImageInfo ii = SkImageInfo::Make(dstContext->width(), dstContext->height(),
53 bool write = dstContext->writePixels(ii, pixels.get(), 0, 0, 0);
66 test_read_pixels(reporter, dstContext, pixels.get(), testName);
84 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, copyDstDesc, proxy));
86 test_read_pixels(reporter, dstContext.get(), expectedPixelValues, testName);
91 GrSurfaceContext* dstContext, const char* testName) {
93 int pixelCnt = dstContext->width() * dstContext->height();
95 for (int y = 0; y < dstContext->width(); ++y) {
96 for (int x = 0; x < dstContext->height(); ++x) {
97 pixels.get()[y * dstContext->width() + x] =
104 copySrcDesc.fWidth = dstContext->width();
105 copySrcDesc.fHeight = dstContext->height();
113 dstContext->copy(src.get());
115 test_read_pixels(reporter, dstContext, pixels.get(), testName);