/external/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 | SkSLCross.cpp | 20 GrDirectContext* directContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 21 auto rtc = GrSurfaceDrawContext::Make(directContext, GrColorType::kRGBA_8888, nullptr, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 27 run_test(reporter, directContext, rtc.get(), {3,4}, {5,6}, -2); // Negative. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 28 run_test(reporter, directContext, rtc.get(), {3,4}, {-5,-6}, 2); // Positive. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 29 run_test(reporter, directContext, rtc.get(), {0, 2.287f}, {0, -7.741f}, 0); // Zero. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 30 run_test(reporter, directContext, rtc.get(), {62.17f, 0}, {-43.49f, 0}, 0); // Zero. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 86 static void run_test(skiatest::Reporter* reporter, GrDirectContext* directContext, in run_test() argument 105 rtc->readPixels(directContext, resultPM, {0, 0}); in run_test()
|
D | SkSLDSLTest.cpp | 89 Start(ctxInfo.directContext()->priv().getGpu()->shaderCompiler()); in StartDSL() 93 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 140 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu(), kOptimize_Flag); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 148 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu(), kNo_Flag); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 154 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu(), kMangle_Flag); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 161 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 221 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 273 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 310 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 347 AutoDSLContext context(ctxInfo.directContext()->priv().getGpu()); in DEF_GPUTEST_FOR_MOCK_CONTEXT() [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 | 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 | GrThreadSafeCacheTest.cpp | 755 test_1(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 759 test_1(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 793 test_2(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 797 test_2(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 825 test_3(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 829 test_3(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 859 test_4(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 863 test_4(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 898 test_4_5(ctxInfo.directContext(), reporter, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 903 test_4_5(ctxInfo.directContext(), reporter, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
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 | 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 | 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() 253 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 281 auto surface(surface_func(ctxInfo.directContext(), at, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 322 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 326 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 361 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 366 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 375 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
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 | TextBlobCacheTest.cpp | 175 text_blob_cache_inner(reporter, ctxInfo.directContext(), 1024, 256, 30, true, false); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 179 text_blob_cache_inner(reporter, ctxInfo.directContext(), 256, 256, 10, true, true); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 183 text_blob_cache_inner(reporter, ctxInfo.directContext(), 256, 256, 10, false, false); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 187 text_blob_cache_inner(reporter, ctxInfo.directContext(), 256, 256, 10, false, true); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 279 auto dContext = ctxInfo.directContext(); 302 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 358 auto direct = 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 | 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 | DSLFPTest.cpp | 68 return test_dsl_fp<Gr##FPClass>(r, ctxInfo.directContext(), /*worksInES2=*/true, \ 73 return test_dsl_fp<Gr##FPClass>(r, ctxInfo.directContext(), /*worksInES2=*/false, \
|
D | DeferredDisplayListTest.cpp | 338 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 627 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 694 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 712 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 722 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 829 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 849 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 899 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 925 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1048 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
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() 129 GrDirectContext* dContext = 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 | PinnedImageTest.cpp | 111 dContext = info.directContext(); in cleanup_test() 133 basic_test(reporter, ctxInfo.directContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
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()
|
D | SkRemoteGlyphCacheTest.cpp | 203 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 254 10, 10, props, nullptr, ctxInfo.directContext()->supportsDistanceFieldText()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 454 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 530 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 619 10, 10, props, nullptr, ctxInfo.directContext()->supportsDistanceFieldText()); 646 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 683 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 740 RasterBlob(clientBlob, 10, 10, paint, ctxInfo.directContext(), &matrix); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 781 auto direct = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | GrTextureMipMapInvalidationTest.cpp | 20 auto context = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 74 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/experimental/ddlbench/ |
D | ddlbench.cpp | 52 ThreadInfo(const SkString& name, GrDirectContext* directContext, TestContext* testContext) in ThreadInfo() 54 , fDirectContext(directContext) in ThreadInfo() 247 if (!mainInfo.directContext()) { in create_contexts() 251 *gpuThread = { SkString("g0"), mainInfo.directContext(), mainInfo.testContext() }; in create_contexts() 259 ContextInfo tmp = factory->getSharedContextInfo(mainInfo.directContext(), i); in create_contexts() 261 utilityThreads[i] = { name, tmp.directContext(), tmp.testContext() }; in create_contexts() 262 allSucceeded &= SkToBool(tmp.directContext()); in create_contexts() 263 allFailed &= !tmp.directContext(); in create_contexts()
|
/external/skia/dm/ |
D | DMGpuTestProcs.cpp | 69 if (ctxInfo.directContext()) { in RunWithGPUTestContexts() 75 ctxInfo.directContext()->flushAndSubmit(/*sync*/true); in RunWithGPUTestContexts()
|
/external/skia/src/image/ |
D | SkImage.cpp | 70 auto dContext = as_IB(this)->directContext(); in readPixels() 116 auto dContext = as_IB(this)->directContext(); in scalePixels() 155 auto dContext = as_IB(this)->directContext(); in encodeToData() 286 auto dContext = as_IB(this)->directContext(); in onAsyncRescaleAndReadPixels() 459 GrDirectContext* SkImage_Base::directContext() const { in directContext() function in SkImage_Base 475 auto dContext = as_IB(this)->directContext(); in readPixels() 492 auto dContext = as_IB(this)->directContext(); in asLegacyBitmap() 664 auto dContext = as_IB(this)->directContext(); in makeRasterImage()
|