Home
last modified time | relevance | path

Searched refs:GrTextureProxy (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/external/skia/src/gpu/
DGrProxyProvider.h36 bool assignUniqueKeyToProxy(const GrUniqueKey&, GrTextureProxy*);
42 void adoptUniqueKeyFromSurface(GrTextureProxy* proxy, const GrSurface*);
48 void removeUniqueKeyFromProxy(GrTextureProxy*);
53 sk_sp<GrTextureProxy> findProxyByUniqueKey(const GrUniqueKey&);
59 sk_sp<GrTextureProxy> findOrCreateProxyByUniqueKey(const GrUniqueKey&,
77 sk_sp<GrTextureProxy> createProxyFromBitmap(const SkBitmap&,
85 sk_sp<GrTextureProxy> createProxy(const GrBackendFormat&,
99 sk_sp<GrTextureProxy> createCompressedTextureProxy(SkISize dimensions,
114 sk_sp<GrTextureProxy> wrapBackendTexture(const GrBackendTexture&,
120 sk_sp<GrTextureProxy> wrapCompressedBackendTexture(const GrBackendTexture&,
[all …]
DGrTextureProxyCacheAccess.h16 class GrTextureProxy::CacheAccess {
26 explicit CacheAccess(GrTextureProxy* textureProxy) : fTextureProxy(textureProxy) {} in CacheAccess()
34 GrTextureProxy* fTextureProxy;
36 friend class GrTextureProxy; // to construct/copy this type. variable
40 inline GrTextureProxy::CacheAccess GrTextureProxy::cacheAccess() { return CacheAccess(this); } in cacheAccess()
42 inline const GrTextureProxy::CacheAccess GrTextureProxy::cacheAccess() const { // NOLINT(readabili… in cacheAccess()
43 return CacheAccess(const_cast<GrTextureProxy*>(this)); in cacheAccess()
DGrTextureProxy.cpp19 GrTextureProxy::GrTextureProxy(const GrBackendFormat& format, in GrTextureProxy() function in GrTextureProxy
43 GrTextureProxy::GrTextureProxy(LazyInstantiateCallback&& callback, in GrTextureProxy() function in GrTextureProxy
69 GrTextureProxy::GrTextureProxy(sk_sp<GrSurface> surf, in GrTextureProxy() function in GrTextureProxy
88 GrTextureProxy::~GrTextureProxy() { in ~GrTextureProxy()
104 bool GrTextureProxy::instantiate(GrResourceProvider* resourceProvider) { in instantiate()
118 sk_sp<GrSurface> GrTextureProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
147 GrMipmapped GrTextureProxy::mipmapped() const { in mipmapped()
154 size_t GrTextureProxy::onUninstantiatedGpuMemorySize() const { in onUninstantiatedGpuMemorySize()
160 bool GrTextureProxy::ProxiesAreCompatibleAsDynamicState(const GrSurfaceProxy* first, in ProxiesAreCompatibleAsDynamicState()
168 void GrTextureProxy::setUniqueKey(GrProxyProvider* proxyProvider, const GrUniqueKey& key) { in setUniqueKey()
[all …]
DGrProxyProvider.cpp50 bool GrProxyProvider::assignUniqueKeyToProxy(const GrUniqueKey& key, GrTextureProxy* proxy) { in assignUniqueKeyToProxy()
81 void GrProxyProvider::adoptUniqueKeyFromSurface(GrTextureProxy* proxy, const GrSurface* surf) { in adoptUniqueKeyFromSurface()
90 void GrProxyProvider::removeUniqueKeyFromProxy(GrTextureProxy* proxy) { in removeUniqueKeyFromProxy()
102 sk_sp<GrTextureProxy> GrProxyProvider::findProxyByUniqueKey(const GrUniqueKey& key) { in findProxyByUniqueKey()
109 GrTextureProxy* proxy = fUniquelyKeyedProxies.find(key); in findProxyByUniqueKey()
119 sk_sp<GrTextureProxy> GrProxyProvider::testingOnly_createInstantiatedProxy( in testingOnly_createInstantiatedProxy()
159 sk_sp<GrTextureProxy> GrProxyProvider::testingOnly_createInstantiatedProxy( in testingOnly_createInstantiatedProxy()
181 sk_sp<GrTextureProxy> GrProxyProvider::testingOnly_createWrapped(sk_sp<GrTexture> tex) { in testingOnly_createWrapped()
186 sk_sp<GrTextureProxy> GrProxyProvider::createWrapped(sk_sp<GrTexture> tex, in createWrapped()
195 return sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy(std::move(tex), useAllocator, in createWrapped()
[all …]
DGrTextureProxyPriv.h32 explicit GrTextureProxyPriv(GrTextureProxy* textureProxy) : fTextureProxy(textureProxy) {} in GrTextureProxyPriv()
40 GrTextureProxy* fTextureProxy;
42 friend class GrTextureProxy; // to construct/copy this type. variable
45 inline GrTextureProxyPriv GrTextureProxy::texPriv() { return GrTextureProxyPriv(this); } in texPriv()
47 inline const GrTextureProxyPriv GrTextureProxy::texPriv() const { // NOLINT(readability-const-retu… in texPriv()
48 return GrTextureProxyPriv(const_cast<GrTextureProxy*>(this)); in texPriv()
DGrTextureProxy.h21 class GrTextureProxy : virtual public GrSurfaceProxy {
23 GrTextureProxy* asTextureProxy() override { return this; } in asTextureProxy()
24 const GrTextureProxy* asTextureProxy() const override { return this; } in asTextureProxy()
111 GrTextureProxy(const GrBackendFormat&,
132 GrTextureProxy(LazyInstantiateCallback&&,
145 GrTextureProxy(sk_sp<GrSurface>, UseAllocator, GrDDLProvider creatingProvider);
147 ~GrTextureProxy() override;
/external/skqp/src/gpu/
DGrProxyProvider.h38 bool assignUniqueKeyToProxy(const GrUniqueKey&, GrTextureProxy*);
44 void adoptUniqueKeyFromSurface(GrTextureProxy* proxy, const GrSurface*);
50 void removeUniqueKeyFromProxy(GrTextureProxy*);
55 sk_sp<GrTextureProxy> findProxyByUniqueKey(const GrUniqueKey&, GrSurfaceOrigin);
61 sk_sp<GrTextureProxy> findOrCreateProxyByUniqueKey(const GrUniqueKey&, GrSurfaceOrigin);
68 sk_sp<GrTextureProxy> createTextureProxy(
79 sk_sp<GrTextureProxy> createMipMapProxy(const GrBackendFormat&, const GrSurfaceDesc&,
85 sk_sp<GrTextureProxy> createMipMapProxyFromBitmap(const SkBitmap& bitmap);
90 sk_sp<GrTextureProxy> createProxy(const GrBackendFormat&, const GrSurfaceDesc&, GrSurfaceOrigin,
94 sk_sp<GrTextureProxy> createProxy(
[all …]
DGrTextureProxy.cpp19 GrTextureProxy::GrTextureProxy(const GrBackendFormat& format, const GrSurfaceDesc& srcDesc, in GrTextureProxy() function in GrTextureProxy
31 GrTextureProxy::GrTextureProxy(const GrBackendFormat& format, const GrSurfaceDesc& srcDesc, in GrTextureProxy() function in GrTextureProxy
41 GrTextureProxy::GrTextureProxy(LazyInstantiateCallback&& callback, LazyInstantiationType lazyType, in GrTextureProxy() function in GrTextureProxy
52 GrTextureProxy::GrTextureProxy(sk_sp<GrSurface> surf, GrSurfaceOrigin origin) in GrTextureProxy() function in GrTextureProxy
63 GrTextureProxy::~GrTextureProxy() { in ~GrTextureProxy()
79 bool GrTextureProxy::instantiate(GrResourceProvider* resourceProvider) { in instantiate()
94 sk_sp<GrSurface> GrTextureProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
125 GrSamplerState::Filter GrTextureProxy::highestFilterMode() const { in highestFilterMode()
130 GrMipMapped GrTextureProxy::mipMapped() const { in mipMapped()
137 size_t GrTextureProxy::onUninstantiatedGpuMemorySize() const { in onUninstantiatedGpuMemorySize()
[all …]
DGrTextureProxyCacheAccess.h16 class GrTextureProxy::CacheAccess {
26 explicit CacheAccess(GrTextureProxy* textureProxy) : fTextureProxy(textureProxy) {} in CacheAccess()
34 GrTextureProxy* fTextureProxy;
36 friend class GrTextureProxy; // to construct/copy this type. variable
40 inline GrTextureProxy::CacheAccess GrTextureProxy::cacheAccess() { return CacheAccess(this); } in cacheAccess()
42 inline const GrTextureProxy::CacheAccess GrTextureProxy::cacheAccess() const { in cacheAccess()
43 return CacheAccess(const_cast<GrTextureProxy*>(this)); in cacheAccess()
DGrProxyProvider.cpp78 bool GrProxyProvider::assignUniqueKeyToProxy(const GrUniqueKey& key, GrTextureProxy* proxy) { in assignUniqueKeyToProxy()
98 void GrProxyProvider::adoptUniqueKeyFromSurface(GrTextureProxy* proxy, const GrSurface* surf) { in adoptUniqueKeyFromSurface()
107 void GrProxyProvider::removeUniqueKeyFromProxy(GrTextureProxy* proxy) { in removeUniqueKeyFromProxy()
119 sk_sp<GrTextureProxy> GrProxyProvider::findProxyByUniqueKey(const GrUniqueKey& key, in findProxyByUniqueKey()
127 sk_sp<GrTextureProxy> result = sk_ref_sp(fUniquelyKeyedProxies.find(key)); in findProxyByUniqueKey()
134 sk_sp<GrTextureProxy> GrProxyProvider::createWrapped(sk_sp<GrTexture> tex, GrSurfaceOrigin origin) { in createWrapped()
142 return sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy(std::move(tex), origin)); in createWrapped()
144 return sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(tex), origin)); in createWrapped()
148 sk_sp<GrTextureProxy> GrProxyProvider::findOrCreateProxyByUniqueKey(const GrUniqueKey& key, in findOrCreateProxyByUniqueKey()
156 sk_sp<GrTextureProxy> result = this->findProxyByUniqueKey(key, origin); in findOrCreateProxyByUniqueKey()
[all …]
DGrTextureProxyPriv.h32 explicit GrTextureProxyPriv(GrTextureProxy* textureProxy) : fTextureProxy(textureProxy) {} in GrTextureProxyPriv()
40 GrTextureProxy* fTextureProxy;
42 friend class GrTextureProxy; // to construct/copy this type. variable
45 inline GrTextureProxyPriv GrTextureProxy::texPriv() { return GrTextureProxyPriv(this); } in texPriv()
47 inline const GrTextureProxyPriv GrTextureProxy::texPriv() const { in texPriv()
48 return GrTextureProxyPriv(const_cast<GrTextureProxy*>(this)); in texPriv()
DGrTextureProducer.h19 class GrTextureProxy; variable
85 sk_sp<GrTextureProxy> refTextureProxyForParams(const GrSamplerState&,
88 sk_sp<GrTextureProxy> refTextureProxyForParams(GrSamplerState::Filter filter, in refTextureProxyForParams()
103 sk_sp<GrTextureProxy> refTextureProxy(GrMipMapped willNeedMips);
160 static sk_sp<GrTextureProxy> CopyOnGpu(GrContext*, sk_sp<GrTextureProxy> inputProxy,
167 GrTextureProxy*,
172 sk_sp<GrTextureProxy> proxy,
181 virtual sk_sp<GrTextureProxy> onRefTextureProxyForParams(const GrSamplerState&,
DGrTextureAdjuster.h32 GrTextureAdjuster(GrContext*, sk_sp<GrTextureProxy>, SkAlphaType, uint32_t uniqueID,
41 GrTextureProxy* originalProxy() const { return fOriginal.get(); } in originalProxy()
42 sk_sp<GrTextureProxy> originalProxyRef() const { return fOriginal; } in originalProxyRef()
45 sk_sp<GrTextureProxy> onRefTextureProxyForParams(const GrSamplerState&,
49 sk_sp<GrTextureProxy> refTextureProxyCopy(const CopyParams& copyParams, bool willBeMipped);
51 sk_sp<GrTextureProxy> fOriginal;
DGrTextureContext.h18 class GrTextureProxy; variable
34 GrTextureProxy* asTextureProxy() override { return fTextureProxy.get(); } in asTextureProxy()
35 const GrTextureProxy* asTextureProxy() const override { return fTextureProxy.get(); } in asTextureProxy()
36 sk_sp<GrTextureProxy> asTextureProxyRef() override { return fTextureProxy; } in asTextureProxyRef()
42 GrTextureContext(GrContext*, GrDrawingManager*, sk_sp<GrTextureProxy>,
52 sk_sp<GrTextureProxy> fTextureProxy;
DGrTextureAdjuster.cpp16 GrTextureAdjuster::GrTextureAdjuster(GrContext* context, sk_sp<GrTextureProxy> original, in GrTextureAdjuster()
38 sk_sp<GrTextureProxy> GrTextureAdjuster::refTextureProxyCopy(const CopyParams& copyParams, in refTextureProxyCopy()
44 sk_sp<GrTextureProxy> cachedCopy; in refTextureProxyCopy()
53 sk_sp<GrTextureProxy> proxy = this->originalProxyRef(); in refTextureProxyCopy()
55 sk_sp<GrTextureProxy> copy = CopyOnGpu(fContext, std::move(proxy), copyParams, willBeMipped); in refTextureProxyCopy()
75 sk_sp<GrTextureProxy> GrTextureAdjuster::onRefTextureProxyForParams( in onRefTextureProxyForParams()
79 sk_sp<GrTextureProxy> proxy = this->originalProxyRef(); in onRefTextureProxyForParams()
103 sk_sp<GrTextureProxy> result = this->refTextureProxyCopy(copyParams, willBeMipped); in onRefTextureProxyForParams()
127 sk_sp<GrTextureProxy> proxy( in createFragmentProcessor()
DSkGr.h31 class GrTextureProxy; variable
177 sk_sp<GrTextureProxy> GrRefCachedBitmapTextureProxy(GrContext*,
187 sk_sp<GrTextureProxy> GrUploadBitmapToTextureProxy(GrProxyProvider*, const SkBitmap&);
192 sk_sp<GrTextureProxy> GrCopyBaseMipMapToTextureProxy(GrContext*,
193 GrTextureProxy* baseProxy);
199 sk_sp<GrTextureProxy> GrMakeCachedBitmapProxy(GrProxyProvider*, const SkBitmap& bitmap,
206 sk_sp<GrTextureProxy> GrMakeCachedImageProxy(GrProxyProvider*, sk_sp<SkImage> srcImage,
/external/skqp/include/private/
DGrTextureProxy.h22 class GrTextureProxy : virtual public GrSurfaceProxy {
24 GrTextureProxy* asTextureProxy() override { return this; } in asTextureProxy()
25 const GrTextureProxy* asTextureProxy() const override { return this; } in asTextureProxy()
52 static bool ProxiesAreCompatibleAsDynamicState(const GrTextureProxy* first,
53 const GrTextureProxy* second);
91 GrTextureProxy(const GrBackendFormat&, const GrSurfaceDesc& srcDesc, GrMipMapped, SkBackingFit,
95 GrTextureProxy(const GrBackendFormat&, const GrSurfaceDesc& srcDesc, GrSurfaceOrigin,
108 GrTextureProxy(LazyInstantiateCallback&&, LazyInstantiationType, const GrBackendFormat&,
113 GrTextureProxy(sk_sp<GrSurface>, GrSurfaceOrigin);
115 ~GrTextureProxy() override;
/external/skia/tests/
DProxyRefTest.cpp25 static sk_sp<GrTextureProxy> make_deferred(GrRecordingContext* rContext) { in make_deferred()
36 static sk_sp<GrTextureProxy> make_wrapped(GrRecordingContext* rContext) { in make_wrapped()
51 sk_sp<GrTextureProxy> proxy((*make)(dContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
53 … sk_sp<GrTextureProxy> extraRef(proxy); // NOLINT(performance-unnecessary-copy-initialization) in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
68 sk_sp<GrTextureProxy> proxy((*make)(dContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
89 sk_sp<GrTextureProxy> proxy((*make)(dContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
91 …sk_sp<GrTextureProxy> firstExtraRef(proxy); // NOLINT(performance-unnecessary-copy-initialization) in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
101 …sk_sp<GrTextureProxy> secondExtraRef(proxy); // NOLINT(performance-unnecessary-copy-initializatio… in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProxyConversionTest.cpp87 GrTextureProxy* tProxy = rtProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
100 GrTextureProxy* tProxy = sProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
115 GrTextureProxy* tProxy = sProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
135 sk_sp<GrTextureProxy> proxy = proxyProvider->createProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
142 GrTextureProxy* tProxy = rtProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
149 sk_sp<GrTextureProxy> proxy = proxyProvider->createProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
154 GrTextureProxy* tProxy = proxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
163 sk_sp<GrTextureProxy> proxy = proxyProvider->createProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
167 GrTextureProxy* tProxy = proxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/src/image/
DSkImage_GpuYUVA.h28 sk_sp<GrTextureProxy> proxies[], int numProxies, const SkYUVAIndex[4],
34 GrTextureProxy* peekProxy() const override { return this->asTextureProxyRef().get(); } in peekProxy()
35 sk_sp<GrTextureProxy> asTextureProxyRef() const override;
42 virtual bool asYUVATextureProxiesRef(sk_sp<GrTextureProxy> proxies[4], in asYUVATextureProxiesRef()
56 sk_sp<GrTextureProxy> asMippedTextureProxyRef() const;
83 mutable sk_sp<GrTextureProxy> fProxies[4];
98 mutable sk_sp<GrTextureProxy> fRGBProxy;
DSkImage_GpuBase.h35 sk_sp<GrTextureProxy> asTextureProxyRef() const override { in asTextureProxyRef()
40 sk_sp<GrTextureProxy> asTextureProxyRef(GrContext*, const GrSamplerState&,
43 sk_sp<GrTextureProxy> refPinnedTextureProxy(uint32_t* uniqueID) const final { in refPinnedTextureProxy()
65 sk_sp<GrTextureProxy> tempTextureProxies[4]);
85 static sk_sp<GrTextureProxy> MakePromiseImageLazyProxy(
92 const sk_sp<GrTextureProxy> proxies[4],
/external/skqp/src/gpu/effects/
DGrDistanceFieldGeoProc.h61 const sk_sp<GrTextureProxy>* proxies, in Make()
70 const sk_sp<GrTextureProxy>* proxies, in Make()
93 void addNewProxies(const sk_sp<GrTextureProxy>* proxies, int numProxies, const GrSamplerState&);
101 const sk_sp<GrTextureProxy>* proxies,
141 const sk_sp<GrTextureProxy>* proxies, in Make()
160 void addNewProxies(const sk_sp<GrTextureProxy>*, int numActiveProxies, const GrSamplerState&);
170 const sk_sp<GrTextureProxy>* proxies,
215 const sk_sp<GrTextureProxy>* proxies, in Make()
238 void addNewProxies(const sk_sp<GrTextureProxy>*, int numActiveProxies, const GrSamplerState&);
245 GrDistanceFieldLCDTextGeoProc(const GrShaderCaps& caps, const sk_sp<GrTextureProxy>* proxies,
/external/skqp/tests/
DProxyConversionTest.cpp92 GrTextureProxy* tProxy = rtProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 GrTextureProxy* tProxy = sProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
121 GrTextureProxy* tProxy = sProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
144 sk_sp<GrTextureProxy> proxy = proxyProvider->createProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
150 GrTextureProxy* tProxy = rtProxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
157 sk_sp<GrTextureProxy> proxy = proxyProvider->createProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
161 GrTextureProxy* tProxy = proxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
172 sk_sp<GrTextureProxy> proxy = proxyProvider->createProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
175 GrTextureProxy* tProxy = proxy->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProxyRefTest.cpp48 GrTextureProxy* proxy, in check_refs()
64 static sk_sp<GrTextureProxy> make_deferred(GrProxyProvider* proxyProvider, const GrCaps* caps) { in make_deferred()
77 static sk_sp<GrTextureProxy> make_wrapped(GrProxyProvider* proxyProvider, const GrCaps* caps) { in make_wrapped()
96 sk_sp<GrTextureProxy> proxy((*make)(proxyProvider, caps)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
116 sk_sp<GrTextureProxy> proxy((*make)(proxyProvider, caps)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
136 sk_sp<GrTextureProxy> proxy((*make)(proxyProvider, caps)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
156 sk_sp<GrTextureProxy> proxy((*make)(proxyProvider, caps)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
180 sk_sp<GrTextureProxy> proxy((*make)(proxyProvider, caps)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTextureProxyTest.cpp41 static sk_sp<GrTextureProxy> deferred_tex(skiatest::Reporter* reporter, GrContext* ctx, in deferred_tex()
47 sk_sp<GrTextureProxy> proxy = in deferred_tex()
55 static sk_sp<GrTextureProxy> deferred_texRT(skiatest::Reporter* reporter, GrContext* ctx, in deferred_texRT()
61 sk_sp<GrTextureProxy> proxy = in deferred_texRT()
68 static sk_sp<GrTextureProxy> wrapped(skiatest::Reporter* reporter, GrContext* ctx, in wrapped()
72 sk_sp<GrTextureProxy> proxy = proxyProvider->testingOnly_createInstantiatedProxy( in wrapped()
79 static sk_sp<GrTextureProxy> wrapped_with_key(skiatest::Reporter* reporter, GrContext* ctx, in wrapped_with_key()
93 sk_sp<GrTextureProxy> proxy = proxyProvider->testingOnly_createInstantiatedProxy( in wrapped_with_key()
100 static sk_sp<GrTextureProxy> create_wrapped_backend(GrContext* context, SkBackingFit fit, in create_wrapped_backend()
125 sk_sp<GrTextureProxy> proxy) { in basic_test()
[all …]

12345678910>>...13