/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 | 87 GrSurfaceContext* dstContext, in test_copy_to_surface() argument 90 int pixelCnt = dstContext->width() * dstContext->height(); in test_copy_to_surface() 92 for (int y = 0; y < dstContext->width(); ++y) { in test_copy_to_surface() 93 for (int x = 0; x < dstContext->height(); ++x) { in test_copy_to_surface() 94 pixels.get()[y * dstContext->width() + x] = in test_copy_to_surface() 100 auto origin = dstContext->origin(); in test_copy_to_surface() 104 dstContext->dimensions()); in test_copy_to_surface() 105 GrCPixmap pixmap(info, pixels.get(), dstContext->width()*sizeof(uint32_t)); in test_copy_to_surface() 112 SkAssertResult(dstContext->testCopy(srcView.refProxy())); in test_copy_to_surface() 113 TestReadPixels(reporter, dContext, dstContext, pixels.get(), testName); in test_copy_to_surface()
|
D | TestUtils.cpp | 53 GrSurfaceContext* dstContext, in TestWritePixels() argument 56 SkImageInfo ii = SkImageInfo::Make(dstContext->dimensions(), in TestWritePixels() 61 for (int y = 0; y < dstContext->height(); ++y) { in TestWritePixels() 62 for (int x = 0; x < dstContext->width(); ++x) { in TestWritePixels() 67 bool write = dstContext->writePixels(dContext, pm, {0, 0}); in TestWritePixels() 80 TestReadPixels(reporter, dContext, dstContext, pm.writable_addr32(0, 0), testName); in TestWritePixels() 95 auto dstContext = GrSurfaceContext::Make(dContext, in TestCopyFromSurface() local 98 SkASSERT(dstContext); in TestCopyFromSurface() 100 TestReadPixels(reporter, dContext, dstContext.get(), expectedPixelValues, testName); in TestCopyFromSurface()
|
D | CopySurfaceTest.cpp | 108 auto dstContext = GrSurfaceContext::Make(dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 114 result = dstContext->testCopy(srcView.refProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 118 SkASSERT(dstContext->asFillContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 119 result = dstContext->asFillContext()->blitTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 166 if (!dstContext->readPixels(dContext, readPM, {0, 0})) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/src/gpu/ |
D | GrSurfaceProxy.cpp | 281 auto dstContext = GrSurfaceContext::Make(context, in Copy() local 292 if (dstContext && (copyTask = dstContext->copy(src, srcRect, dstPoint))) { in Copy() 296 return dstContext->asSurfaceProxyRef(); in Copy() 300 auto dstContext = GrSurfaceFillContext::Make(context, in Copy() local 314 if (dstContext && dstContext->blitTexture(std::move(view), srcRect, dstPoint)) { in Copy() 316 *outTask = sk_ref_sp(dstContext->getOpsTask()); in Copy() 318 return dstContext->asSurfaceProxyRef(); 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_9_0.inc | 532 CUresult CUDAAPI cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, 539 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount); 644 CUresult CUDAAPI cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, 651 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount,
|
D | cuda_10_1.inc | 542 CUresult CUDAAPI cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, 549 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount); 654 CUresult CUDAAPI cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, 661 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount,
|
D | cuda_10_0.inc | 542 CUresult CUDAAPI cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, 549 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount); 654 CUresult CUDAAPI cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, 661 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount,
|
D | cuda_10_2.inc | 550 CUresult CUDAAPI cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, 557 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount); 662 CUresult CUDAAPI cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, 669 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount,
|
D | cuda_11_0.inc | 557 CUresult CUDAAPI cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, 564 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount); 669 CUresult CUDAAPI cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, 676 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount,
|
D | cuda_11_2.inc | 598 CUresult CUDAAPI cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, 605 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount); 710 CUresult CUDAAPI cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, 717 return func_ptr(dstDevice, dstContext, srcDevice, srcContext, ByteCount,
|
/external/tensorflow/tensorflow/core/profiler/internal/gpu/ |
D | cupti_tracer.cc | 448 cupti_interface->GetDeviceId(p2p_params->dstContext, &dst_device); in AddP2PMemcpyEventUponApiExit()
|