Home
last modified time | relevance | path

Searched refs:GrResourceProvider (Results 1 – 25 of 183) sorted by relevance

12345678

/external/skqp/src/gpu/
DGrResourceProvider.cpp31 const uint32_t GrResourceProvider::kMinScratchTextureSize = 16;
42 GrResourceProvider::GrResourceProvider(GrGpu* gpu, GrResourceCache* cache, GrSingleOwner* owner, in GrResourceProvider() function in GrResourceProvider
64 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in createTexture()
82 sk_sp<GrTexture> GrResourceProvider::getExactScratch(const GrSurfaceDesc& desc, in getExactScratch()
92 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, in createTexture()
142 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in createTexture()
164 sk_sp<GrTexture> GrResourceProvider::createApproxTexture(const GrSurfaceDesc& desc, in createApproxTexture()
203 sk_sp<GrTexture> GrResourceProvider::refScratchTexture(const GrSurfaceDesc& desc, Flags flags) { in refScratchTexture()
236 sk_sp<GrTexture> GrResourceProvider::wrapBackendTexture(const GrBackendTexture& tex, in wrapBackendTexture()
247 sk_sp<GrTexture> GrResourceProvider::wrapRenderableBackendTexture(const GrBackendTexture& tex, in wrapRenderableBackendTexture()
[all …]
DGrResourceProviderPriv.h21 explicit GrResourceProviderPriv(GrResourceProvider* provider) : fResourceProvider(provider) {} in GrResourceProviderPriv()
29 GrResourceProvider* fResourceProvider;
30 friend class GrResourceProvider; // to construct/copy this type variable
33 inline GrResourceProviderPriv GrResourceProvider::priv() { return GrResourceProviderPriv(this); } in priv()
35 inline const GrResourceProviderPriv GrResourceProvider::priv() const { in priv()
36 return GrResourceProviderPriv(const_cast<GrResourceProvider*>(this)); in priv()
DGrProxyProvider.h18 class GrResourceProvider; variable
29 GrProxyProvider(GrResourceProvider*, GrResourceCache*, sk_sp<const GrCaps>, GrSingleOwner*);
141 using LazyInstantiateCallback = std::function<sk_sp<GrSurface>(GrResourceProvider*)>;
258 friend class GrResourceProvider; // for createWrapped variable
273 GrResourceProvider* fResourceProvider;
DGrSurfaceProxyPriv.h40 sk_sp<GrSurface> createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
57 bool doLazyInstantiation(GrResourceProvider*);
69 static bool SK_WARN_UNUSED_RESULT AttachStencilIfNeeded(GrResourceProvider*, GrSurface*,
DGrSurfaceProxy.cpp113 bool GrSurfaceProxyPriv::AttachStencilIfNeeded(GrResourceProvider* resourceProvider, in AttachStencilIfNeeded()
130 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl()
146 GrResourceProvider::Flags resourceProviderFlags = GrResourceProvider::Flags::kNone; in createSurfaceImpl()
151 resourceProviderFlags = GrResourceProvider::Flags::kNoPendingIO; in createSurfaceImpl()
227 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl()
310 return SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(fWidth)); in worstCaseWidth()
322 return SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(fHeight)); in worstCaseHeight()
427 bool GrSurfaceProxyPriv::doLazyInstantiation(GrResourceProvider* resourceProvider) { in doLazyInstantiation()
DGrOpFlushState.h24 class GrResourceProvider; variable
32 GrOpFlushState(GrGpu*, GrResourceProvider*, GrTokenTracker*, void* vertexSpace,
104 GrResourceProvider* resourceProvider() const final { return fResourceProvider; } in resourceProvider()
161 GrResourceProvider* fResourceProvider;
DGrSurface.cpp23 ? SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(desc.fWidth)) in WorstCaseSize()
26 ? SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(desc.fHeight)) in WorstCaseSize()
70 ? SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(width)) in ComputeSize()
73 ? SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(height)) in ComputeSize()
DGrTextureRenderTargetProxy.h43 bool instantiate(GrResourceProvider*) override;
44 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
/external/skia/src/gpu/
DGrResourceProvider.cpp29 const int GrResourceProvider::kMinScratchTextureSize = 16;
33 GrResourceProvider::GrResourceProvider(GrGpu* gpu, GrResourceCache* cache, GrSingleOwner* owner) in GrResourceProvider() function in GrResourceProvider
43 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
92 sk_sp<GrTexture> GrResourceProvider::getExactScratch(SkISize dimensions, in getExactScratch()
109 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
145 sk_sp<GrTexture> GrResourceProvider::createCompressedTexture(SkISize dimensions, in createCompressedTexture()
159 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
194 SkISize GrResourceProvider::MakeApprox(SkISize dimensions) { in MakeApprox()
221 sk_sp<GrTexture> GrResourceProvider::createApproxTexture(SkISize dimensions, in createApproxTexture()
253 sk_sp<GrTexture> GrResourceProvider::findAndRefScratchTexture(const GrScratchKey& key) { in findAndRefScratchTexture()
[all …]
DGrResourceProviderPriv.h21 explicit GrResourceProviderPriv(GrResourceProvider* provider) : fResourceProvider(provider) {} in GrResourceProviderPriv()
29 GrResourceProvider* fResourceProvider;
30 friend class GrResourceProvider; // to construct/copy this type variable
33 inline GrResourceProviderPriv GrResourceProvider::priv() { return GrResourceProviderPriv(this); } in priv()
35 inline const GrResourceProviderPriv GrResourceProvider::priv() const { // NOLINT(readability-const… in priv()
36 return GrResourceProviderPriv(const_cast<GrResourceProvider*>(this)); in priv()
DGrSurfaceProxy.h24 class GrResourceProvider; variable
103 std::function<LazyCallbackResult(GrResourceProvider*, const LazySurfaceDesc&)>;
208 virtual bool instantiate(GrResourceProvider*) = 0;
393 virtual sk_sp<GrSurface> createSurface(GrResourceProvider*) const = 0;
396 sk_sp<GrSurface> createSurfaceImpl(GrResourceProvider*, int sampleCnt, GrRenderable,
409 bool instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, GrRenderable,
DGrRenderTargetProxy.h19 class GrResourceProvider; variable
55 bool instantiate(GrResourceProvider*) override;
162 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
DGrTextureProxy.h17 class GrResourceProvider; variable
27 bool instantiate(GrResourceProvider*) override;
149 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
DGrProxyProvider.cpp142 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in testingOnly_createInstantiatedProxy()
302 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in createProxyFromBitmap()
325 [bitmap](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createNonMippedProxyFromBitmap()
361 [bitmap, mipmaps](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createMippedProxyFromBitmap()
465 [data](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createCompressedTextureProxy()
479 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in createCompressedTextureProxy()
506 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in wrapBackendTexture()
541 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in wrapCompressedBackendTexture()
579 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in wrapRenderableBackendTexture()
615 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in wrapBackendRenderTarget()
[all …]
DGrTextureRenderTargetProxy.h66 bool instantiate(GrResourceProvider*) override;
67 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
DGrSurfaceProxyPriv.h26 sk_sp<GrSurface> createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
41 bool doLazyInstantiation(GrResourceProvider*);
/external/skqp/src/gpu/ops/
DGrStencilAndCoverPathRenderer.h15 class GrResourceProvider; variable
24 static GrPathRenderer* Create(GrResourceProvider*, const GrCaps&);
38 GrStencilAndCoverPathRenderer(GrResourceProvider*);
40 GrResourceProvider* fResourceProvider;
/external/skia/tests/
DBulkRectTest.cpp223 false, false, 2*GrResourceProvider::MaxNumNonAAQuads(), kNumExpectedOps); in run_test()
236 false, false, 2*GrResourceProvider::MaxNumNonAAQuads(), kNumExpectedOps); in run_test()
246 int numExpectedOps = 2*GrResourceProvider::MaxNumNonAAQuads() / in run_test()
247 GrResourceProvider::MaxNumAAQuads(); in run_test()
250 false, false, 2*GrResourceProvider::MaxNumNonAAQuads(), numExpectedOps); in run_test()
258 return (i < GrResourceProvider::MaxNumAAQuads()) ? GrQuadAAFlags::kNone in run_test()
265 false, false, 2*GrResourceProvider::MaxNumAAQuads(), kNumExpectedOps); in run_test()
280 false, false, 2*GrResourceProvider::MaxNumAAQuads(), kNumExpectedOps); in run_test()
/external/skqp/include/private/
DGrOpList.h23 class GrResourceProvider; variable
32 GrOpList(GrResourceProvider*, sk_sp<GrOpMemoryPool>, GrSurfaceProxy*, GrAuditTrail*);
36 bool instantiate(GrResourceProvider* resourceProvider);
38 void instantiateDeferredProxies(GrResourceProvider* resourceProvider);
DGrRenderTargetProxy.h14 class GrResourceProvider; variable
27 bool instantiate(GrResourceProvider*) override;
93 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
DGrTextureProxy.h17 class GrResourceProvider; variable
28 bool instantiate(GrResourceProvider*) override;
117 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
DGrSurfaceProxy.h23 class GrResourceProvider; variable
323 virtual bool instantiate(GrResourceProvider* resourceProvider) = 0;
430 using LazyInstantiateCallback = std::function<sk_sp<GrSurface>(GrResourceProvider*)>;
459 virtual sk_sp<GrSurface> createSurface(GrResourceProvider*) const = 0;
462 sk_sp<GrSurface> createSurfaceImpl(GrResourceProvider*, int sampleCnt, bool needsStencil,
465 bool instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, bool needsStencil,
/external/skqp/tests/
DResourceAllocatorTest.cpp91 static void overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resourceProvider, in overlap_test()
113 static void non_overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resourceProvider, in non_overlap_test()
134 bool GrResourceProvider::testingOnly_setExplicitlyAllocateGPUResources(bool newValue) { in testingOnly_setExplicitlyAllocateGPUResources()
143 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
271 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
303 auto callback = [fit, desc](GrResourceProvider* resourceProvider) -> sk_sp<GrSurface> { in make_lazy()
308 return resourceProvider->createApproxTexture(desc, GrResourceProvider::Flags::kNone); in make_lazy()
323 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/src/gpu/mock/
DGrMockSurfaceProxy.h26 bool instantiate(GrResourceProvider*) override { return false; } in instantiate() argument
31 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override { return nullptr; } in createSurface() argument
/external/skia/src/gpu/ops/
DGrMeshDrawOp.cpp110 GrResourceProvider::NumVertsPerNonAAQuad(), in QuadHelper()
111 GrResourceProvider::NumIndicesPerNonAAQuad(), quadsToDraw, in QuadHelper()
112 GrResourceProvider::MaxNumNonAAQuads()); in QuadHelper()

12345678