Searched refs:dstContext (Results 1 – 6 of 6) sorted by relevance
/external/skia/tests/ |
D | TestUtils.cpp | 40 GrSurfaceContext* dstContext, bool expectedToWork, in test_write_pixels() argument 42 int pixelCnt = dstContext->width() * dstContext->height(); in test_write_pixels() 44 for (int y = 0; y < dstContext->width(); ++y) { in test_write_pixels() 45 for (int x = 0; x < dstContext->height(); ++x) { in test_write_pixels() 46 pixels.get()[y * dstContext->width() + x] = in test_write_pixels() 51 SkImageInfo ii = SkImageInfo::Make(dstContext->width(), dstContext->height(), 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() 86 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, copyDstDesc, proxy)); in test_copy_from_surface() local 88 test_read_pixels(reporter, dstContext.get(), expectedPixelValues, testName); in test_copy_from_surface() [all …]
|
D | IntTextureTest.cpp | 136 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, desc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 138 REPORTER_ASSERT(reporter, dstContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 139 if (!dstContext || !dstContext->asTextureProxy()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 144 bool success = context->contextPriv().readSurfacePixels(dstContext.get(), 0, 0, kS, kS, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 159 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, nonIntDesc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 161 REPORTER_ASSERT(reporter, !dstContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 169 sk_sp<GrSurfaceContext> dstContext(GrSurfaceProxy::TestCopy(context, nonIntDesc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 171 REPORTER_ASSERT(reporter, !dstContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | CopySurfaceTest.cpp | 93 sk_sp<GrSurfaceContext> dstContext = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 97 bool result = dstContext->copy(src.get(), srcRect, dstPoint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 135 if (!dstContext->readPixels(ii, read.get(), kRowBytes, 0, 0)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | TestUtils.h | 33 GrSurfaceContext* dstContext, const char* testName);
|
/external/skia/src/gpu/ |
D | GrSurfaceProxy.cpp | 280 sk_sp<GrSurfaceContext> dstContext(context->contextPriv().makeDeferredSurfaceContext( in Copy() local 284 if (!dstContext) { in Copy() 288 if (!dstContext->copy(src, srcRect, SkIPoint::Make(0, 0))) { in Copy() 292 return dstContext->asTextureProxyRef(); in Copy() 303 sk_sp<GrSurfaceContext> dstContext(context->contextPriv().makeDeferredSurfaceContext( in TestCopy() local 307 if (!dstContext) { in TestCopy() 311 if (!dstContext->copy(srcProxy)) { in TestCopy() 315 return dstContext; in TestCopy()
|
/external/skia/gm/ |
D | image_pict.cpp | 187 sk_sp<GrSurfaceContext> dstContext(fCtx->contextPriv().makeDeferredSurfaceContext( in onGenerateTexture() local 191 if (!dstContext) { in onGenerateTexture() 195 if (!dstContext->copy( in onGenerateTexture() 202 return dstContext->asTextureProxyRef(); in onGenerateTexture()
|