/external/skqp/tests/ |
D | TestUtils.cpp | 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() [all …]
|
D | CopySurfaceTest.cpp | 105 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()
|
D | TestUtils.h | 33 GrSurfaceContext* dstContext, const char* testName);
|
/external/skia/tests/ |
D | RectangleTextureTest.cpp | 98 GrSurfaceContext* dstContext, in test_copy_to_surface() argument 101 int pixelCnt = dstContext->width() * dstContext->height(); in test_copy_to_surface() 103 for (int y = 0; y < dstContext->width(); ++y) { in test_copy_to_surface() 104 for (int x = 0; x < dstContext->height(); ++x) { in test_copy_to_surface() 105 pixels.get()[y * dstContext->width() + x] = in test_copy_to_surface() 111 auto origin = dstContext->origin(); in test_copy_to_surface() 114 {GrColorType::kRGBA_8888, kPremul_SkAlphaType, nullptr, dstContext->width(), in test_copy_to_surface() 115 dstContext->height()}, in test_copy_to_surface() 119 SkAssertResult(dstContext->testCopy(src.get(), origin)); in test_copy_to_surface() 120 TestReadPixels(reporter, dstContext, pixels.get(), testName); in test_copy_to_surface()
|
D | TestUtils.cpp | 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() [all …]
|
D | CopySurfaceTest.cpp | 111 auto dstContext = GrSurfaceContext::Make(context, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 118 result = dstContext->testCopy(src.get(), sOrigin, srcRect, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 121 SkASSERT(dstContext->asRenderTargetContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 125 result = dstContext->asRenderTargetContext()->blitTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 171 if (!dstContext->readPixels(ii, read.get(), kRowBytes, {0, 0})) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/src/gpu/ |
D | GrSurfaceProxy.cpp | 306 auto dstContext = GrSurfaceContext::Make(context, {width, height}, format, in Copy() local 310 if (dstContext && dstContext->copy(src, origin, srcRect, dstPoint)) { in Copy() 311 return dstContext->readSurfaceView(); in Copy() 315 auto dstContext = GrRenderTargetContext::Make(context, srcColorType, nullptr, fit, in Copy() local 322 if (dstContext && dstContext->blitTexture(std::move(view), srcRect, dstPoint)) { in Copy() 323 return dstContext->readSurfaceView(); in Copy()
|
/external/skqp/src/gpu/ |
D | GrSurfaceProxy.cpp | 356 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/skqp/gm/ |
D | image_pict.cpp | 186 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/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_10_0.inc | 541 CUresult CUDAAPI cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, 548 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount); 653 CUresult CUDAAPI cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, 660 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount,
|
/external/tensorflow/tensorflow/core/profiler/internal/gpu/ |
D | cupti_tracer.cc | 365 cupti_interface->GetDeviceId(p2p_params->dstContext, &dst_device); in AddP2PMemcpyEventUponApiExit()
|