Lines Matching refs:resourceProvider
91 static void overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resourceProvider, in overlap_test() argument
94 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker); in overlap_test()
113 static void non_overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resourceProvider, in non_overlap_test() argument
117 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker); in non_overlap_test()
143 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
145 bool orig = resourceProvider->testingOnly_setExplicitlyAllocateGPUResources(true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
159 bool kConditionallyShare = resourceProvider->caps()->reuseScratchTextures(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
183 overlap_test(reporter, resourceProvider, p1, p2, test.fExpectation); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
230 non_overlap_test(reporter, resourceProvider, p1, p2, test.fExpectation); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
246 non_overlap_test(reporter, resourceProvider, p1, p2, t[0].fExpectation); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
254 resourceProvider->testingOnly_setExplicitlyAllocateGPUResources(orig); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
271 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
277 bool orig = resourceProvider->testingOnly_setExplicitlyAllocateGPUResources(true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
287 resourceProvider->testingOnly_setExplicitlyAllocateGPUResources(orig); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
303 auto callback = [fit, desc](GrResourceProvider* resourceProvider) -> sk_sp<GrSurface> { in make_lazy() argument
304 if (!resourceProvider) { in make_lazy()
308 return resourceProvider->createApproxTexture(desc, GrResourceProvider::Flags::kNone); in make_lazy()
310 return resourceProvider->createTexture(desc, SkBudgeted::kNo); in make_lazy()
323 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
325 resourceProvider->testingOnly_setExplicitlyAllocateGPUResources(explicitlyAllocating); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
345 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()