Lines Matching refs:dstContext
47 GrSurfaceContext* dstContext, in TestWritePixels() argument
50 int pixelCnt = dstContext->width() * dstContext->height(); in TestWritePixels()
52 for (int y = 0; y < dstContext->width(); ++y) { in TestWritePixels()
53 for (int x = 0; x < dstContext->height(); ++x) { in TestWritePixels()
54 pixels.get()[y * dstContext->width() + x] = in TestWritePixels()
59 SkImageInfo ii = SkImageInfo::Make(dstContext->width(), dstContext->height(), in TestWritePixels()
61 bool write = dstContext->writePixels(ii, pixels.get(), 0, {0, 0}); in TestWritePixels()
74 TestReadPixels(reporter, dstContext, pixels.get(), testName); in TestWritePixels()
89 auto dstContext = GrSurfaceContext::Make(context, std::move(view), colorType, in TestCopyFromSurface() local
91 SkASSERT(dstContext); in TestCopyFromSurface()
93 TestReadPixels(reporter, dstContext.get(), expectedPixelValues, testName); in TestCopyFromSurface()