Home
last modified time | relevance | path

Searched refs:dstContext (Results 1 – 11 of 11) sorted by relevance

/external/skqp/tests/
DTestUtils.cpp44 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()
[all …]
DCopySurfaceTest.cpp105 sk_sp<GrSurfaceContext> dstContext = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
109 bool result = dstContext->copy(src.get(), srcRect, dstPoint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
149 if (!dstContext->readPixels(ii, read.get(), kRowBytes, 0, 0)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTestUtils.h33 GrSurfaceContext* dstContext, const char* testName);
/external/skia/tests/
DTestUtils.cpp44 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()
[all …]
DCopySurfaceTest.cpp104 sk_sp<GrSurfaceContext> dstContext = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
107 bool result = dstContext->copy(src.get(), srcRect, dstPoint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
147 if (!dstContext->readPixels(ii, read.get(), kRowBytes, 0, 0)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTestUtils.h33 GrSurfaceContext* dstContext, const char* testName);
/external/skqp/src/gpu/
DGrSurfaceProxy.cpp356 sk_sp<GrSurfaceContext> dstContext(context->contextPriv().makeDeferredSurfaceContext( in Copy() local
358 if (!dstContext) { in Copy()
362 if (!dstContext->copy(src, srcRect, SkIPoint::Make(0, 0))) { in Copy()
366 return dstContext->asTextureProxyRef(); in Copy()
386 sk_sp<GrSurfaceContext> dstContext(context->contextPriv().makeDeferredSurfaceContext( in TestCopy() local
388 if (!dstContext) { in TestCopy()
392 if (!dstContext->copy(srcProxy)) { in TestCopy()
396 return dstContext; in TestCopy()
/external/skia/src/gpu/
DGrSurfaceProxy.cpp353 sk_sp<GrSurfaceContext> dstContext(context->priv().makeDeferredSurfaceContext( in Copy() local
355 if (!dstContext) { in Copy()
359 if (!dstContext->copy(src, srcRect, SkIPoint::Make(0, 0))) { in Copy()
363 return dstContext->asTextureProxyRef(); in Copy()
384 sk_sp<GrSurfaceContext> dstContext(context->priv().makeDeferredSurfaceContext( in TestCopy() local
386 if (!dstContext) { in TestCopy()
390 if (!dstContext->copy(srcProxy)) { in TestCopy()
394 return dstContext; in TestCopy()
/external/skqp/gm/
Dimage_pict.cpp186 sk_sp<GrSurfaceContext> dstContext(fCtx->contextPriv().makeDeferredSurfaceContext( in onGenerateTexture() local
189 if (!dstContext) { in onGenerateTexture()
193 if (!dstContext->copy( in onGenerateTexture()
200 return dstContext->asTextureProxyRef(); in onGenerateTexture()
/external/skia/gm/
Dimage_pict.cpp186 sk_sp<GrSurfaceContext> dstContext(fCtx->priv().makeDeferredSurfaceContext( in onGenerateTexture() local
189 if (!dstContext) { in onGenerateTexture()
193 if (!dstContext->copy( in onGenerateTexture()
200 return dstContext->asTextureProxyRef(); in onGenerateTexture()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_10_0.inc508 CUresult CUDAAPI cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, C…
512 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount);
606 CUresult CUDAAPI cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevi…
610 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream);