Home
last modified time | relevance | path

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

1234

/third_party/skia/src/gpu/
DGrResourceProvider.cpp30 const int GrResourceProvider::kMinScratchTextureSize = 16;
34 GrResourceProvider::GrResourceProvider(GrGpu* gpu, GrResourceCache* cache, GrSingleOwner* owner) in GrResourceProvider() function in GrResourceProvider
44 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
112 sk_sp<GrTexture> GrResourceProvider::getExactScratch(SkISize dimensions, in getExactScratch()
134 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
179 sk_sp<GrTexture> GrResourceProvider::createCompressedTexture(SkISize dimensions, in createCompressedTexture()
193 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
241 SkISize GrResourceProvider::MakeApprox(SkISize dimensions) { in MakeApprox()
268 sk_sp<GrTexture> GrResourceProvider::createApproxTexture(SkISize dimensions, in createApproxTexture()
307 sk_sp<GrTexture> GrResourceProvider::findAndRefScratchTexture(const GrScratchKey& key) { in findAndRefScratchTexture()
[all …]
DGrResourceProviderPriv.h21 explicit GrResourceProviderPriv(GrResourceProvider* provider) : fResourceProvider(provider) {} in GrResourceProviderPriv()
30 GrResourceProvider* fResourceProvider;
31 friend class GrResourceProvider; // to construct/copy this type variable
34 inline GrResourceProviderPriv GrResourceProvider::priv() { return GrResourceProviderPriv(this); } in priv()
36 inline const GrResourceProviderPriv GrResourceProvider::priv() const { // NOLINT(readability-const… in priv()
37 return GrResourceProviderPriv(const_cast<GrResourceProvider*>(this)); in priv()
DGrSurfaceProxyPriv.h13 class GrResourceProvider; variable
26 sk_sp<GrSurface> createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
41 bool doLazyInstantiation(GrResourceProvider*);
DGrSurfaceProxy.h23 class GrResourceProvider; variable
102 std::function<LazyCallbackResult(GrResourceProvider*, const LazySurfaceDesc&)>;
211 virtual bool instantiate(GrResourceProvider*) = 0;
399 virtual sk_sp<GrSurface> createSurface(GrResourceProvider*) const = 0;
402 sk_sp<GrSurface> createSurfaceImpl(GrResourceProvider*, int sampleCnt, GrRenderable,
415 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;
DGrProxyProvider.cpp157 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in testingOnly_createInstantiatedProxy()
329 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in createProxyFromBitmap()
352 [bitmap](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createNonMippedProxyFromBitmap()
396 [bitmap, mipmaps](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createMippedProxyFromBitmap()
512 [data](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createCompressedTextureProxy()
526 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in createCompressedTextureProxy()
553 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in wrapBackendTexture()
588 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in wrapCompressedBackendTexture()
626 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in wrapRenderableBackendTexture()
664 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in wrapBackendRenderTarget()
[all …]
DGrTextureProxy.h18 class GrResourceProvider; variable
28 bool instantiate(GrResourceProvider*) override;
153 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
DGrTextureRenderTargetProxy.h66 bool instantiate(GrResourceProvider*) override;
67 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
DGrSurfaceProxy.cpp105 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl()
178 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl()
239 return GrResourceProvider::MakeApprox(fDimensions); in backingStoreDimensions()
245 fDimensions == GrResourceProvider::MakeApprox(fDimensions); in isFunctionallyExact()
417 bool GrSurfaceProxyPriv::doLazyInstantiation(GrResourceProvider* resourceProvider) { in doLazyInstantiation()
DGrOpFlushState.h24 class GrResourceProvider; variable
32 GrOpFlushState(GrGpu*, GrResourceProvider*, GrTokenTracker*,
180 GrResourceProvider* resourceProvider() const final { return fResourceProvider; } in resourceProvider()
315 GrResourceProvider* fResourceProvider;
DGrDirectContextPriv.h80 GrResourceProvider* resourceProvider() { return this->context()->fResourceProvider.get(); } in resourceProvider()
81 const GrResourceProvider* resourceProvider() const { in resourceProvider()
DGrRenderTargetProxy.cpp78 bool GrRenderTargetProxy::instantiate(GrResourceProvider* resourceProvider) { in instantiate()
119 sk_sp<GrSurface> GrRenderTargetProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
DGrResourceAllocator.h160 Register(GrSurfaceProxy* originatingProxy, GrScratchKey, GrResourceProvider*);
176 bool instantiateSurface(GrSurfaceProxy*, GrResourceProvider*);
DGrTextureRenderTargetProxy.cpp118 bool GrTextureRenderTargetProxy::instantiate(GrResourceProvider* resourceProvider) { in instantiate()
140 GrResourceProvider* resourceProvider) const { in createSurface()
DGrTextureProxy.cpp105 bool GrTextureProxy::instantiate(GrResourceProvider* resourceProvider) { in instantiate()
119 sk_sp<GrSurface> GrTextureProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
DGrSurface.cpp32 dimensions = GrResourceProvider::MakeApprox(dimensions); in ComputeSize()
/third_party/skia/src/gpu/ops/
DGrMeshDrawOp.cpp35 return combinedQuadCount > (willBeAA ? GrResourceProvider::MaxNumAAQuads() in CombinedQuadCountWillOverflow()
36 : GrResourceProvider::MaxNumNonAAQuads()); in CombinedQuadCountWillOverflow()
126 GrResourceProvider::NumVertsPerNonAAQuad(), in QuadHelper()
127 GrResourceProvider::NumIndicesPerNonAAQuad(), quadsToDraw, in QuadHelper()
128 GrResourceProvider::MaxNumNonAAQuads()); in QuadHelper()
DQuadPerEdgeAA.cpp478 case IndexBufferOption::kPictureFramed: return GrResourceProvider::MaxNumAAQuads(); in QuadLimit()
479 case IndexBufferOption::kIndexedRects: return GrResourceProvider::MaxNumNonAAQuads(); in QuadLimit()
490 runningQuadCount * GrResourceProvider::NumVertsPerNonAAQuad(); in IssueDraw()
502 maxNumQuads = GrResourceProvider::MaxNumAAQuads(); in IssueDraw()
503 numIndicesPerQuad = GrResourceProvider::NumIndicesPerAAQuad(); in IssueDraw()
504 numVertsPerQuad = GrResourceProvider::NumVertsPerAAQuad(); in IssueDraw()
507 maxNumQuads = GrResourceProvider::MaxNumNonAAQuads(); in IssueDraw()
508 numIndicesPerQuad = GrResourceProvider::NumIndicesPerNonAAQuad(); in IssueDraw()
509 numVertsPerQuad = GrResourceProvider::NumVertsPerNonAAQuad(); in IssueDraw()
DSmallPathRenderer.cpp211 if (instanceCount > SK_MaxS32 / GrResourceProvider::NumVertsPerNonAAQuad()) { in onPrepareDraws()
215 kVertexStride, GrResourceProvider::NumVertsPerNonAAQuad() * instanceCount, in onPrepareDraws()
570 GrResourceProvider::NumIndicesPerNonAAQuad(), in flush()
572 GrResourceProvider::MaxNumNonAAQuads(), in flush()
574 GrResourceProvider::NumVertsPerNonAAQuad(), in flush()
578 flushInfo->fVertexOffset += GrResourceProvider::NumVertsPerNonAAQuad() * in flush()
/third_party/skia/tests/
DBulkRectTest.cpp225 false, false, 2*GrResourceProvider::MaxNumNonAAQuads(), kNumExpectedOps); in run_test()
238 false, false, 2*GrResourceProvider::MaxNumNonAAQuads(), kNumExpectedOps); in run_test()
248 int numExpectedOps = 2*GrResourceProvider::MaxNumNonAAQuads() / in run_test()
249 GrResourceProvider::MaxNumAAQuads(); in run_test()
252 false, false, 2*GrResourceProvider::MaxNumNonAAQuads(), numExpectedOps); in run_test()
260 return (i < GrResourceProvider::MaxNumAAQuads()) ? GrQuadAAFlags::kNone in run_test()
267 false, false, 2*GrResourceProvider::MaxNumAAQuads(), kNumExpectedOps); in run_test()
282 false, false, 2*GrResourceProvider::MaxNumAAQuads(), kNumExpectedOps); in run_test()
DProxyTest.cpp45 GrResourceProvider* provider, in check_rendertarget()
79 GrResourceProvider* provider, in check_texture()
116 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
213 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DLazyProxyTest.cpp85 [this, nullTexture](GrResourceProvider* rp, in Op()
148 [this](GrResourceProvider* rp, const GrSurfaceProxy::LazySurfaceDesc&) in ClipFP()
283 LazyInstantiationResult operator()(GrResourceProvider*, in operator ()() argument
354 GrResourceProvider* rp, const GrSurfaceProxy::LazySurfaceDesc& desc) in LazyFailedInstantiationTestOp()
/third_party/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
/third_party/skia/src/gpu/text/
DGrAtlasManager.h17 class GrResourceProvider; variable
70 GrResourceProvider*,
89 GrDrawOpAtlas::ErrorCode addToAtlas(GrResourceProvider*, GrDeferredUploadTarget*, GrMaskFormat,
/third_party/skia/src/image/
DSkSurface_GpuMtl.mm14 #include "src/gpu/GrResourceProvider.h"
51 [layer, drawable](GrResourceProvider* resourceProvider,
120 [view](GrResourceProvider* resourceProvider,

1234