/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/tests/ |
H A D | GrFinishedFlushTest.cpp | 50 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 60 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 68 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 84 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 91 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 99 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 106 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 114 dContext->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 120 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 128 dContext->submit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
H A D | ClearTest.cpp | 32 static bool check_rect(GrDirectContext* dContext, GrRenderTargetContext* rtc, const SkIRect& rect, in check_rect() argument 67 static void clear_op_test(skiatest::Reporter* reporter, GrDirectContext* dContext) { in clear_op_test() argument 98 rtContext = newRTC(dContext, kW, kH); in clear_op_test() 108 rtContext = newRTC(dContext, kW, kH); in clear_op_test() 119 rtContext = newRTC(dContext, kW, kH); in clear_op_test() 130 rtContext = newRTC(dContext, kW, kH); in clear_op_test() 141 rtContext = newRTC(dContext, kW, kH); in clear_op_test() 152 rtContext = newRTC(dContext, kW, kH); in clear_op_test() 174 rtContext = newRTC(dContext, kW, kH); in clear_op_test() 185 rtContext = newRTC(dContext, kW, kH); in clear_op_test() [all …]
|
H A D | CompressedBackendAllocationTest.cpp | 46 return SkImage::MakeFromCompressedTexture(dContext, in create_image() 117 if (dContext->backend() == GrBackendApi::kMetal) { in check_readback() 131 bool result = img->readPixels(dContext, actual, 0, 0); in check_readback() 139 static void test_compressed_color_init(GrDirectContext* dContext, in test_compressed_color_init() argument 152 sk_sp<SkImage> img = create_image(dContext, backendTex); in test_compressed_color_init() 179 dContext->deleteBackendTexture(backendTex); in test_compressed_color_init() 213 static void test_compressed_data_init(GrDirectContext* dContext, in test_compressed_data_init() argument 241 sk_sp<SkImage> img = create_image(dContext, backendTex); in test_compressed_data_init() 274 dContext->deleteBackendTexture(backendTex); in test_compressed_data_init() 278 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local [all …]
|
H A D | GrSurfaceTest.cpp | 205 auto dContext = factory.get(contextType); in DEF_GPUTEST() local 206 if (!dContext) { in DEF_GPUTEST() 355 auto dContext = context_info.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 397 dContext->flushAndSubmit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 416 dContext->flushAndSubmit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 434 dContext->flushAndSubmit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 515 if (!dContext) { in DEF_GPUTEST() 546 texture = make(dContext, 2); in DEF_GPUTEST() 608 dContext->flushAndSubmit(); in DEF_GPUTEST() 629 dContext->flushAndSubmit(); in DEF_GPUTEST() [all …]
|
H A D | TextureBindingsResetTest.cpp | 21 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 22 GrGpu* gpu = dContext->priv().getGpu(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 72 dContext->flushAndSubmit(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 74 dContext->resetContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 82 dContext->resetGLTextureBindings(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 85 dContext->resetContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 101 dContext->resetGLTextureBindings(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 104 dContext->resetContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 122 dContext->resetContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 129 dContext->resetGLTextureBindings(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() [all …]
|
H A D | GrDDLImageTest.cpp | 17 auto dContext = factory.get(contextType); in DEF_GPUTEST() local 18 if (!dContext) { in DEF_GPUTEST() 34 auto subImg1 = rasterImg->makeSubset(subsetBounds, dContext); in DEF_GPUTEST() 35 REPORTER_ASSERT(reporter, subImg1->isValid(dContext)); in DEF_GPUTEST() 42 auto surf = SkSurface::MakeRenderTarget(dContext, SkBudgeted::kNo, ii); in DEF_GPUTEST() 51 REPORTER_ASSERT(reporter, gpuImage->isValid(dContext)); in DEF_GPUTEST() 54 auto subImg5 = gpuImage->makeSubset(subsetBounds, dContext); in DEF_GPUTEST() 55 REPORTER_ASSERT(reporter, subImg5->isValid(dContext)); in DEF_GPUTEST() 60 dContext->flush(); in DEF_GPUTEST() 61 dContext->submit(true); in DEF_GPUTEST() [all …]
|
H A D | TraceMemoryDumpTest.cpp | 62 dContext->dumpMemoryStatistics(&dump_with_wrapped); in ValidateMemoryDumps() 67 dContext->dumpMemoryStatistics(&dump_no_wrapped); in ValidateMemoryDumps() 79 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 80 GrGLGpu* gpu = static_cast<GrGLGpu*>(dContext->priv().getGpu()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 89 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 90 GrGLGpu* gpu = static_cast<GrGLGpu*>(dContext->priv().getGpu()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 106 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 107 GrGLGpu* gpu = static_cast<GrGLGpu*>(dContext->priv().getGpu()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 126 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 127 GrGLGpu* gpu = static_cast<GrGLGpu*>(dContext->priv().getGpu()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() [all …]
|
H A D | TextureProxyTest.cpp | 101 dContext, in create_wrapped_backend() 121 static void basic_test(GrDirectContext* dContext, in basic_test() argument 239 if (dContext->backend() == GrBackendApi::kDawn || in invalidation_test() 240 dContext->backend() == GrBackendApi::kVulkan || in invalidation_test() 241 dContext->backend() == GrBackendApi::kDirect3D || in invalidation_test() 242 dContext->backend() == GrBackendApi::kMetal) { in invalidation_test() 253 size_t maxBytes = dContext->getResourceCacheLimit(); in invalidation_test() 254 dContext->setResourceCacheLimit(maxBytes-1); in invalidation_test() 263 dContext->submit(true); in invalidation_test() 269 if (dContext->backend() == GrBackendApi::kDawn) { in invalidation_test() [all …]
|
H A D | RectangleTextureTest.cpp | 44 static void test_clear(skiatest::Reporter* reporter, GrDirectContext* dContext, in test_clear() argument 90 GrDirectContext* dContext, in test_copy_to_surface() argument 106 dContext, renderable, origin, in test_copy_to_surface() 113 TestReadPixels(reporter, dContext, dstContext, pixels.get(), testName); in test_copy_to_surface() 119 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 121 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 138 GrBackendTexture rectangleTex = dContext->createBackendTexture(kWidth, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 163 dContext->deleteBackendTexture(rectangleTex); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 186 auto rectContext = GrSurfaceContext::Make(dContext, std::move(view), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 197 test_clear(reporter, dContext, rectContext.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() [all …]
|
H A D | DeferredDisplayListTest.cpp | 393 SurfaceParameters params(dContext); in DDLSurfaceCharacterizationTestImpl() 397 ddl = params.createDDL(dContext); in DDLSurfaceCharacterizationTestImpl() 409 dContext->flush(); in DDLSurfaceCharacterizationTestImpl() 414 SurfaceParameters params(dContext); in DDLSurfaceCharacterizationTestImpl() 426 dContext->flush(); in DDLSurfaceCharacterizationTestImpl() 457 dContext->flush(); in DDLSurfaceCharacterizationTestImpl() 462 SurfaceParameters params(dContext); in DDLSurfaceCharacterizationTestImpl() 469 dContext->flush(); in DDLSurfaceCharacterizationTestImpl() 484 SurfaceParameters params(dContext); in DDLSurfaceCharacterizationTestImpl() 695 SurfaceParameters params(dContext); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() [all …]
|
H A D | BackendAllocationTest.cpp | 32 dContext->submit(); in wait_on_backend_work_to_finish() 34 dContext->checkAsyncWorkCompletion(); in wait_on_backend_work_to_finish() 44 static void delete_backend_texture(GrDirectContext* dContext, in delete_backend_texture() argument 47 wait_on_backend_work_to_finish(dContext, finishedCreate); in delete_backend_texture() 48 dContext->deleteBackendTexture(backendTexture); in delete_backend_texture() 56 void test_wrapping(GrDirectContext* dContext, in test_wrapping() argument 313 void test_color_init(GrDirectContext* dContext, in test_color_init() argument 376 if (GrBackendApi::kOpenGL == dContext->backend()) { in check_mipmaps() 395 sk_sp<SkImage> img = SkImage::MakeFromTexture(dContext, in check_mipmaps() 465 static void test_pixmap_init(GrDirectContext* dContext, in test_pixmap_init() argument [all …]
|
H A D | GrMipMappedTest.cpp | 40 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 41 if (!dContext->priv().caps()->mipmapSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 67 dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 125 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 126 if (!dContext->priv().caps()->mipmapSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 265 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 266 if (!dContext->priv().caps()->mipmapSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 317 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 404 if (!dContext) { 471 dContext->flushAndSubmit(); [all …]
|
H A D | ImageTest.cpp | 189 test_encode(reporter, dContext, create_gpu_image(dContext).get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 389 [dContext] { return create_gpu_image(dContext, true, SkBudgeted::kYes); }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 390 [dContext] { return create_gpu_image(dContext, false, SkBudgeted::kNo); }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 462 [dContext] { return create_gpu_image(dContext); }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 715 image_test_read_pixels(dContext, reporter, create_gpu_image(dContext).get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 847 dContext, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 882 if (!dContext) { in test_cross_context_image() 1402 [dContext, in DEF_GPUTEST_FOR_ALL_CONTEXTS() 1417 i0->flush(dContext); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 1420 i1->flush(dContext); in DEF_GPUTEST_FOR_ALL_CONTEXTS() [all …]
|
H A D | TextureOpTest.cpp | 50 static GrOp::Owner create_op(GrDirectContext* dContext, SkRect rect, in create_op() argument 58 return GrTextureOp::Make(dContext, in create_op() 76 GrDirectContext* dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 77 const GrCaps* caps = dContext->priv().caps(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 78 GrRecordingContext::Arenas arenas = dContext->priv().arenas(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 79 auto auditTrail = dContext->priv().auditTrail(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 86 GrSurfaceProxyView proxyViewA(create_proxy(dContext), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 89 GrSurfaceProxyView proxyViewB(create_proxy(dContext), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 92 GrSurfaceProxyView proxyViewC(create_proxy(dContext), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 109 &arenas, dContext->priv().auditTrail()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
H A D | BulkRectTest.cpp | 57 std::unique_ptr<GrRenderTargetContext> rtc = new_RTC(dContext); in fillrectop_creation_test() 89 dContext->flushAndSubmit(); in fillrectop_creation_test() 101 std::unique_ptr<GrRenderTargetContext> rtc = new_RTC(dContext); in textureop_creation_test() 106 sk_sp<GrSurfaceProxy> proxyA = create_proxy(dContext); in textureop_creation_test() 107 sk_sp<GrSurfaceProxy> proxyB = create_proxy(dContext); in textureop_creation_test() 125 sk_sp<GrSurfaceProxy> proxyA = create_proxy(dContext); in textureop_creation_test() 148 GrOp::Owner op = GrTextureOp::Make(dContext, in textureop_creation_test() 165 dContext, in textureop_creation_test() 206 dContext->flushAndSubmit(); in textureop_creation_test() 222 test(reporter, dContext, noAA, GrAAType::kNone, SkBlendMode::kSrcOver, in run_test() [all …]
|
H A D | GrUploadPixelsTests.cpp | 25 void basic_texture_test(skiatest::Reporter* reporter, GrDirectContext* dContext, SkColorType ct, in basic_texture_test() argument 36 dContext, renderable, kTopLeft_GrSurfaceOrigin, in basic_texture_test() 40 auto sContext = GrSurfaceContext::Make(dContext, std::move(view), grCT, kPremul_SkAlphaType, in basic_texture_test() 45 bool result = sContext->readPixels(dContext, dstInfo, dstBuffer, 0, {0, 0}); in basic_texture_test() 51 result = sContext->writePixels(dContext, dstInfo, srcBuffer, 0, {2, 10}); in basic_texture_test() 56 result = sContext->readPixels(dContext, dstInfo, dstBuffer, 0, {2, 10}); in basic_texture_test() 63 dContext, renderable, kBottomLeft_GrSurfaceOrigin, in basic_texture_test() 67 auto sContext = GrSurfaceContext::Make(dContext, std::move(view), grCT, kPremul_SkAlphaType, in basic_texture_test() 72 bool result = sContext->readPixels(dContext, dstInfo, dstBuffer, 0, {0, 0}); in basic_texture_test() 78 result = sContext->writePixels(dContext, dstInfo, srcBuffer, 0, {5, 4}); in basic_texture_test() [all …]
|
H A D | GrTestingBackendTextureUploadTest.cpp | 17 static void testing_only_texture_test(skiatest::Reporter* reporter, GrDirectContext* dContext, in testing_only_texture_test() argument 29 const GrCaps* caps = dContext->priv().caps(); in testing_only_texture_test() 33 GrBackendFormat backendFormat = dContext->defaultBackendFormat(ct, renderable); in testing_only_texture_test() 45 backendTex = dContext->createBackendTexture(&expectedPixels, 1, in testing_only_texture_test() 48 backendTex = dContext->createBackendTexture(kWidth, kHeight, ct, SkColors::kTransparent, in testing_only_texture_test() 68 wrappedProxy = dContext->priv().proxyProvider()->wrapRenderableBackendTexture( in testing_only_texture_test() 71 wrappedProxy = dContext->priv().proxyProvider()->wrapBackendTexture( in testing_only_texture_test() 76 GrSwizzle swizzle = dContext->priv().caps()->getReadSwizzle(wrappedProxy->backendFormat(), in testing_only_texture_test() 79 auto surfaceContext = GrSurfaceContext::Make(dContext, std::move(view), grCT, in testing_only_texture_test() 83 bool result = surfaceContext->readPixels(dContext, in testing_only_texture_test()
|
H A D | GrThreadSafeCacheTest.cpp | 114 : fDContext(dContext) in TestHelper() 732 TestHelper helper(dContext); in test_1() 765 TestHelper helper(dContext); in test_2() 922 dContext->flush(); in test_4_75() 923 dContext->submit(true); in test_4_75() 1191 dContext->flush(); in test_10() 1192 dContext->submit(true); in test_10() 1252 dContext->flush(); in test_11() 1253 dContext->submit(true); in test_11() 1300 dContext->flush(); in test_12() [all …]
|
H A D | VkWrapTests.cpp | 34 void wrap_tex_test(skiatest::Reporter* reporter, GrDirectContext* dContext) { in wrap_tex_test() argument 35 GrGpu* gpu = dContext->priv().getGpu(); in wrap_tex_test() 95 void wrap_rt_test(skiatest::Reporter* reporter, GrDirectContext* dContext) { in wrap_rt_test() argument 96 GrGpu* gpu = dContext->priv().getGpu(); in wrap_rt_test() 140 void wrap_trt_test(skiatest::Reporter* reporter, GrDirectContext* dContext) { in wrap_trt_test() argument 141 GrGpu* gpu = dContext->priv().getGpu(); in wrap_trt_test() 186 int maxSamples = dContext->priv().caps()->maxRenderTargetSampleCount( in wrap_trt_test() 208 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() local 210 wrap_tex_test(reporter, dContext); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 211 wrap_rt_test(reporter, dContext); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/fuzz/ |
H A D | FuzzCreateDDL.cpp | 127 if (!dContext->colorTypeSupportedAsSurface(surfaceType)) { in make_characterization() 129 GrBackendApiToStr(dContext->backend())); in make_characterization() 133 GrBackendFormat backendFormat = dContext->defaultBackendFormat(surfaceType, in make_characterization() 137 GrBackendApiToStr(dContext->backend())); in make_characterization() 145 size_t maxResourceBytes = dContext->getResourceCacheLimit(); in make_characterization() 146 c = dContext->threadSafeProxy()->createCharacterization( in make_characterization() 152 GrBackendApiToStr(dContext->backend())); in make_characterization() 197 auto surface = make_surface(fuzz, dContext, ii, origin); in create_surface_and_characterization() 213 GrDirectContext* dContext = ctxInfo.directContext(); in DEF_FUZZ() local 214 if (!dContext) { in DEF_FUZZ() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/docs/examples/ |
H A D | Image_makeTextureImage.cpp | 7 auto dContext = GrAsDirectContext(canvas->recordingContext()); in draw() local 8 if (!dContext) { in draw() 13 GrDirectContext* dContext, in draw() 15 if (nullptr == image || nullptr == dContext) { in draw() 24 sk_sp<SkImage> texture(image->makeTextureImage(dContext)); in draw() 31 sk_sp<SkImage> textureImage(SkImage::MakeFromTexture(dContext, backEndTexture, in draw() 35 drawImage(image, dContext, "image"); in draw() 37 drawImage(bitmapImage, dContext, "source"); in draw() 39 drawImage(textureImage, dContext, "backEndTexture"); in draw()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/tools/gpu/ |
H A D | BackendSurfaceFactory.cpp | 18 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext* dContext, in MakeBackendTextureSurface() argument 28 auto mbet = ManagedBackendTexture::MakeWithoutData(dContext, in MakeBackendTextureSurface() 38 return SkSurface::MakeFromBackendTexture(dContext, in MakeBackendTextureSurface() 49 sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext* dContext, in MakeBackendTextureSurface() argument 60 dContext, ii, origin, sampleCnt, mipMapped, isProtected, props); in MakeBackendTextureSurface() 62 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext* dContext, in MakeBackendRenderTargetSurface() argument 78 auto bert = dContext->priv().getGpu()->createTestingOnlyBackendRenderTarget( in MakeBackendRenderTargetSurface() 80 auto rc = new ReleaseContext{sk_ref_sp(dContext), bert}; in MakeBackendRenderTargetSurface() 92 dContext, bert, origin, ii.colorType(), ii.refColorSpace(), props, proc, rc); in MakeBackendRenderTargetSurface() 95 sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext* dContext, in MakeBackendRenderTargetSurface() argument [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/src/image/ |
H A D | SkImage_Gpu.cpp | 70 if (!fContext->priv().matches(dContext) || dContext->abandoned()) { in onFlush() 81 return dContext->priv().flushSurfaces(p, info); in onFlush() 132 auto dContext = fContext->asDirectContext(); in onAsyncRescaleAndReadPixels() local 133 if (!dContext) { in onAsyncRescaleAndReadPixels() 157 auto dContext = fContext->asDirectContext(); in onAsyncRescaleAndReadPixelsYUV420() local 158 if (!dContext) { in onAsyncRescaleAndReadPixelsYUV420() 269 auto dContext = GrAsDirectContext(rContext); in MakeFromAdoptedTexture() local 270 if (!dContext) { in MakeFromAdoptedTexture() 510 if (!dContext) { in makeTextureImage() 612 if (!dContext || !dContext->priv().caps()->crossContextTextureSupport()) { in MakeCrossContextFromPixmap() [all …]
|
H A D | SkImage.cpp | 62 auto dContext = as_IB(this)->directContext(); in readPixels() local 107 auto dContext = as_IB(this)->directContext(); in scalePixels() local 158 auto dContext = as_IB(this)->directContext(); in encodeToData() local 160 if (as_IB(this)->getROPixels(dContext, &bm)) { in encodeToData() 230 return as_IB(this)->onFlush(dContext, flushInfo); in flush() 234 this->flush(dContext, {}); in flushAndSubmit() 235 dContext->submit(); in flushAndSubmit() 287 auto dContext = as_IB(this)->directContext(); in onAsyncRescaleAndReadPixels() local 334 auto dContext = as_IB(this)->directContext(); in readPixels() local 351 auto dContext = as_IB(this)->directContext(); in asLegacyBitmap() local [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/src/gpu/ |
H A D | GrAHardwareBufferUtils.cpp | 65 GrBackendApi backend = dContext->backend(); in GetBackendFormat() 181 void GLTextureHelper::rebind(GrDirectContext* dContext) { in rebind() argument 194 dContext->resetContext(kTextureBinding_GrGLBackendState); in rebind() 204 cleanupHelper->rebind(dContext); in update_gl_texture() 256 dContext->resetContext(kTextureBinding_GrGLBackendState); in make_gl_backend_texture() 310 SkASSERT(dContext->backend() == GrBackendApi::kVulkan); in make_vk_backend_texture() 524 if (GrBackendApi::kOpenGL == dContext->backend()) { in can_import_protected_content() 529 } else if (GrBackendApi::kVulkan == dContext->backend()) { in can_import_protected_content() 545 SkASSERT(dContext); in MakeBackendTexture() 546 if (!dContext || dContext->abandoned()) { in MakeBackendTexture() [all …]
|