/third_party/skia/tests/ |
D | GrContextFactoryTest.cpp | 24 if (!info1.directContext()) { in DEF_GPUTEST() 29 info1.directContext()->ref(); in DEF_GPUTEST() 34 REPORTER_ASSERT(reporter, info2.directContext()); in DEF_GPUTEST() 37 REPORTER_ASSERT(reporter, info1.directContext() != info2.directContext()); in DEF_GPUTEST() 40 info1.directContext()->unref(); in DEF_GPUTEST() 49 if (!info1.directContext()) { in DEF_GPUTEST() 54 info1.directContext()->ref(); in DEF_GPUTEST() 58 ContextInfo info2 = testFactory.getSharedContextInfo(info1.directContext()); in DEF_GPUTEST() 59 REPORTER_ASSERT(reporter, !info2.directContext()); in DEF_GPUTEST() 60 info1.directContext()->unref(); in DEF_GPUTEST() [all …]
|
D | VkProtectedContextTest.cpp | 89 auto dContext = protectedTestHelper->directContext(); in DEF_GPUTEST() 100 REPORTER_ASSERT(reporter, protectedTestHelper->directContext() != nullptr); in DEF_GPUTEST() 105 protectedTestHelper->directContext()->createBackendTexture( in DEF_GPUTEST() 116 REPORTER_ASSERT(reporter, protectedTestHelper->directContext() != nullptr); in DEF_GPUTEST() 121 protectedTestHelper->directContext()->createBackendTexture( in DEF_GPUTEST() 132 REPORTER_ASSERT(reporter, protectedTestHelper->directContext() != nullptr); in DEF_GPUTEST() 134 auto surface = create_protected_sksurface(protectedTestHelper->directContext(), reporter); in DEF_GPUTEST() 160 auto dContext = protectedTestHelper->directContext(); in DEF_GPUTEST() 186 REPORTER_ASSERT(reporter, protectedTestHelper->directContext() != nullptr); in DEF_GPUTEST() 188 auto surface = create_protected_sksurface(protectedTestHelper->directContext(), reporter); in DEF_GPUTEST() [all …]
|
D | SkSLDSLTest.cpp | 108 Start(ctxInfo.directContext()->priv().getGpu()->shaderCompiler()); in StartDSL() 112 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 160 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu(), no_mark_vars_declared()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 170 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu(), settings, in DEF_GPUTEST_FOR_MOCK_CONTEXT() 178 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu(), SkSL::ProgramSettings()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 185 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 245 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 297 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 334 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 374 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() [all …]
|
D | GrThreadSafeCacheTest.cpp | 763 test_1(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 767 test_1(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 801 test_2(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 805 test_2(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 833 test_3(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 837 test_3(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 867 test_4(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 871 test_4(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 906 test_4_5(ctxInfo.directContext(), reporter, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 911 test_4_5(ctxInfo.directContext(), reporter, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | VkYcbcrSamplerTest.cpp | 37 VkYcbcrSamplerHelper ycbcrHelper(testHelper.directContext()); in DEF_GPUTEST() 47 sk_sp<SkImage> srcImage = SkImage::MakeFromTexture(testHelper.directContext(), in DEF_GPUTEST() 59 testHelper.directContext(), SkBudgeted::kNo, in DEF_GPUTEST() 126 VkYcbcrSamplerHelper ycbcrHelper(testHelper.directContext()); in DEF_GPUTEST() 131 GrBackendTexture texture = testHelper.directContext()->createBackendTexture( in DEF_GPUTEST()
|
D | SurfaceSemaphoreTest.cpp | 76 auto childDContext = childInfo.directContext(); in draw_child() 117 auto mainCtx = mainInfo.directContext(); in surface_semaphore_test() 214 if (ctxInfo.directContext()) { in DEF_GPUTEST() 216 factory.getSharedContextInfo(ctxInfo.directContext(), 0); in DEF_GPUTEST() 218 factory.getSharedContextInfo(ctxInfo.directContext(), 1); in DEF_GPUTEST() 219 if (!child1.directContext() || !child2.directContext()) { in DEF_GPUTEST() 231 auto ctx = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | TraceMemoryDumpTest.cpp | 80 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 90 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 107 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 127 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 146 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 166 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | SurfaceTest.cpp | 94 SkSurface::MakeRenderTarget(ctxInfo.directContext(), SkBudgeted::kNo, info)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 98 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 185 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 251 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 279 auto surface(surface_func(ctxInfo.directContext(), at, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 320 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 324 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 359 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 364 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 373 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | TestTest.cpp | 27 REPORTER_ASSERT(reporter, ctxInfo.directContext()); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 34 REPORTER_ASSERT(reporter, ctxInfo.directContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 41 REPORTER_ASSERT(reporter, ctxInfo.directContext()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
|
D | TextBlobCacheTest.cpp | 176 text_blob_cache_inner(reporter, ctxInfo.directContext(), 1024, 256, 30, true, true); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 180 text_blob_cache_inner(reporter, ctxInfo.directContext(), 1024, 256, 30, true, false); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 185 text_blob_cache_inner(reporter, ctxInfo.directContext(), 256, 256, 10, true, true); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 190 text_blob_cache_inner(reporter, ctxInfo.directContext(), 256, 256, 10, false, true); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 194 text_blob_cache_inner(reporter, ctxInfo.directContext(), 256, 256, 10, false, false); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 199 text_blob_cache_inner(reporter, ctxInfo.directContext(), 256, 256, 10, false, true); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 291 auto dContext = ctxInfo.directContext(); 314 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 370 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | VkDrawableTest.cpp | 273 draw_drawable_test(reporter, ctxInfo.directContext(), nullptr); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 287 if (ctxInfo.directContext()) { in DEF_GPUTEST() 289 factory.getSharedContextInfo(ctxInfo.directContext(), 0); in DEF_GPUTEST() 290 if (!child.directContext()) { in DEF_GPUTEST() 294 draw_drawable_test(reporter, ctxInfo.directContext(), child.directContext()); in DEF_GPUTEST()
|
D | ImageTest.cpp | 189 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 346 sk_sp<SkImage> image(create_gpu_image(ctxInfo.directContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 379 auto dContext = contextInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 394 auto otherContextImage = create_gpu_image(otherContextInfo.directContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 395 otherContextInfo.directContext()->flushAndSubmit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 465 auto dContext = contextInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 492 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 523 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 724 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 783 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | DeferredDisplayListTest.cpp | 336 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 625 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 692 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 710 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 720 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 827 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 847 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 897 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 923 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1046 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | GpuDrawPathTest.cpp | 81 SkSurface::MakeRenderTarget(ctxInfo.directContext(), SkBudgeted::kNo, info, in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() 96 auto surface(SkSurface::MakeRenderTarget(ctxInfo.directContext(), SkBudgeted::kNo, info)); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 120 auto surface(SkSurface::MakeRenderTarget(ctxInfo.directContext(), SkBudgeted::kNo, info)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
|
D | SkSLCross.cpp | 21 GrDirectContext* dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 92 static void run_test(skiatest::Reporter* reporter, GrDirectContext* directContext, in run_test() argument 111 sdc->readPixels(directContext, resultPM, {0, 0}); in run_test()
|
D | DMSAATest.cpp | 88 auto dContext = ctxInfo.directContext(); 119 auto dContext = ctxInfo.directContext(); 143 auto dContext = ctxInfo.directContext(); 168 auto dContext = ctxInfo.directContext(); 199 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | WrappedSurfaceCopyOnWriteTest.cpp | 24 GrDirectContext* dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 83 GrDirectContext* dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 134 GrDirectContext* dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | TextureStripAtlasManagerTest.cpp | 22 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 52 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | SkRuntimeEffectTest.cpp | 525 test_RuntimeEffect_Shaders(r, ctxInfo.directContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 656 test_RuntimeEffect_Blenders(r, ctxInfo.directContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 800 test_RuntimeEffectStructNameReuse(r, ctxInfo.directContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 893 result.fp->addToKey(*ctxInfo.directContext()->priv().caps()->shaderCaps(), &builder); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 913 GrDirectContext* directContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 916 directContext->priv().makeSFC(info, SkBackingFit::kExact); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 938 if (!testCtx->readPixels(directContext, pixmap, /*srcPt=*/{0, 0})) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ReadWritePixelsGpuTest.cpp | 483 GrDirectContext* direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 522 auto surf = SkSurface::MakeRenderTarget(ctxInfo.directContext(), SkBudgeted::kYes, srcII); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 538 auto surf = SkSurface::MakeRenderTarget(ctxInfo.directContext(), SkBudgeted::kYes, dstII); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 605 [context = ctxInfo.directContext(), origin](const SkPixmap& src) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 620 [context = ctxInfo.directContext(), origin](const SkPixmap& src) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 642 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 681 return sk_gpu_test::MakeBackendTextureImage(ctxInfo.directContext(), src, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1062 GrDirectContext* direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1103 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1254 image = image->makeTextureImage(ctxInfo.directContext()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() [all …]
|
D | SkRemoteGlyphCacheTest.cpp | 204 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 255 10, 10, props, nullptr, ctxInfo.directContext()->supportsDistanceFieldText()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 463 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 539 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 628 10, 10, props, nullptr, ctxInfo.directContext()->supportsDistanceFieldText()); 655 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 692 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 752 RasterBlob(clientBlob, 10, 10, paint, ctxInfo.directContext(), &matrix); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 793 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | FloatingPointTextureTest.cpp | 78 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 88 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | VkBackendSurfaceTest.cpp | 34 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 89 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 192 auto dContext = ctxInfo.directContext();
|
/third_party/skia/src/image/ |
D | SkImage.cpp | 68 auto dContext = as_IB(this)->directContext(); in readPixels() 114 auto dContext = as_IB(this)->directContext(); in scalePixels() 153 auto dContext = as_IB(this)->directContext(); in encodeToData() 274 auto dContext = as_IB(this)->directContext(); in onAsyncRescaleAndReadPixels() 447 GrDirectContext* SkImage_Base::directContext() const { in directContext() function in SkImage_Base 463 auto dContext = as_IB(this)->directContext(); in readPixels() 480 auto dContext = as_IB(this)->directContext(); in asLegacyBitmap() 660 auto dContext = as_IB(this)->directContext(); in makeRasterImage()
|
/third_party/skia/dm/ |
D | DMGpuTestProcs.cpp | 74 if (ctxInfo.directContext()) { in RunWithGPUTestContexts() 80 ctxInfo.directContext()->flushAndSubmit(/*sync*/true); in RunWithGPUTestContexts()
|