• Home
  • Raw
  • Download

Lines Matching refs:dContext

116     TestHelper(GrDirectContext* dContext,  in TestHelper()  argument
118 : fDContext(dContext) in TestHelper()
121 fDst = SkSurface::MakeRenderTarget(dContext, SkBudgeted::kNo, default_ii(kImageWH)); in TestHelper()
145 GrDirectContext* dContext() { return fDContext; } in dContext() function in TestHelper
537 if (auto dContext = rContext->asDirectContext(); dContext && !fVertexData->gpuBuffer()) { in findOrCreateVertices() local
538 auto rp = dContext->priv().resourceProvider(); in findOrCreateVertices()
578 auto dContext = flushState->gpu()->getContext(); in onPrepare() local
582 this->findOrCreateVertices(dContext, false, fFailFillingIn); in onPrepare()
648 bool TestHelper::FillInViewOnGpu(GrDirectContext* dContext, int wh, Stats* stats, in FillInViewOnGpu() argument
652 std::unique_ptr<skgpu::v1::SurfaceDrawContext> sdc = new_SDC(dContext, wh); in FillInViewOnGpu()
679 if (GrDirectContext* dContext = rContext->asDirectContext()) { in AccessCachedView() local
683 dContext, GrColorType::kRGBA_8888, {wh, wh}, kImageOrigin, SkBackingFit::kExact); in AccessCachedView()
705 if (!FillInViewOnGpu(dContext, wh, stats, lazyView, std::move(trampoline))) { in AccessCachedView()
739 static void test_1(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_1() argument
743 TestHelper helper(dContext); in test_1()
772 static void test_2(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_2() argument
776 TestHelper helper(dContext); in test_2()
809 static void test_3(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_3() argument
813 TestHelper helper(dContext); in test_3()
842 static void test_4(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_4() argument
846 TestHelper helper(dContext); in test_4()
876 static void test_4_5(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_4_5() argument
880 TestHelper helper(dContext); in test_4_5()
917 static void test_4_75(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_4_75() argument
921 TestHelper helper(dContext); in test_4_75()
933 dContext->flush(); in test_4_75()
934 dContext->submit(true); in test_4_75()
956 static void test_5(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_5() argument
960 TestHelper helper(dContext); in test_5()
994 static void test_6(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_6() argument
998 TestHelper helper(dContext); in test_6()
1037 static void test_7(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_7() argument
1041 TestHelper helper(dContext); in test_7()
1082 static void test_8(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_8() argument
1086 TestHelper helper(dContext); in test_8()
1106 dContext->abandonContext(); // This should exercise dropAllRefs in test_8()
1127 static void test_9(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_9() argument
1131 TestHelper helper(dContext); in test_9()
1151 dContext->releaseResourcesAndAbandonContext(); // This should hit dropAllRefs in test_9()
1172 static void test_10(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_10() argument
1176 if (GrBackendApi::kOpenGL != dContext->backend()) { in test_10()
1182 TestHelper helper(dContext); in test_10()
1202 dContext->flush(); in test_10()
1203 dContext->submit(true); in test_10()
1206 dContext->purgeUnlockedResources(false); in test_10()
1220 auto cache = dContext->priv().getResourceCache(); in test_10()
1227 dContext->purgeUnlockedResources(amountToPurge, true); in test_10()
1249 static void test_11(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_11() argument
1253 TestHelper helper(dContext); in test_11()
1263 dContext->flush(); in test_11()
1264 dContext->submit(true); in test_11()
1273 dContext->purgeUnlockedResources(/* scratchResourcesOnly */ true); in test_11()
1277 dContext->purgeUnlockedResources(/* scratchResourcesOnly */ false); in test_11()
1293 static void test_12(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_12() argument
1297 TestHelper helper(dContext); in test_12()
1311 dContext->flush(); in test_12()
1312 dContext->submit(true); in test_12()
1320 dContext->setResourceCacheLimit(0); in test_12()
1327 dContext->performDeferredCleanup(std::chrono::milliseconds(0)); in test_12()
1341 static void test_13(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_13() argument
1345 TestHelper helper(dContext); in test_13()
1370 dContext->performDeferredCleanup(msecs); in test_13()
1422 static void test_15(GrDirectContext* dContext, skiatest::Reporter* reporter, in test_15() argument
1427 TestHelper helper(dContext); in test_15()
1439 GrUniqueKeyInvalidatedMessage msg(key, dContext->priv().contextID(), in test_15()
1445 dContext->purgeUnlockedResources(/* scratchResourcesOnly */ true); in test_15()