Home
last modified time | relevance | path

Searched refs:TextureProxy (Results 1 – 25 of 48) sorted by relevance

12

/external/skia/src/gpu/graphite/
DTextureProxy.cpp17 TextureProxy::TextureProxy(SkISize dimensions, const TextureInfo& info, skgpu::Budgeted budgeted) in TextureProxy() function in skgpu::graphite::TextureProxy
22 TextureProxy::TextureProxy(sk_sp<Texture> texture) in TextureProxy() function in skgpu::graphite::TextureProxy
31 TextureProxy::TextureProxy(SkISize dimensions, in TextureProxy() function in skgpu::graphite::TextureProxy
45 TextureProxy::~TextureProxy() {} in ~TextureProxy()
47 SkISize TextureProxy::dimensions() const { in dimensions()
52 bool TextureProxy::isLazy() const { in isLazy()
56 bool TextureProxy::isFullyLazy() const { in isFullyLazy()
63 bool TextureProxy::isVolatile() const { in isVolatile()
70 bool TextureProxy::instantiate(ResourceProvider* resourceProvider) { in instantiate()
85 bool TextureProxy::lazyInstantiate(ResourceProvider* resourceProvider) { in lazyInstantiate()
[all …]
DTextureProxy.h27 class TextureProxy : public SkRefCnt {
29 TextureProxy(SkISize dimensions, const TextureInfo& info, skgpu::Budgeted budgeted);
30 TextureProxy(sk_sp<Texture>);
32 TextureProxy() = delete;
34 ~TextureProxy() override;
61 static bool InstantiateIfNotLazy(ResourceProvider*, TextureProxy*);
67 static sk_sp<TextureProxy> Make(const Caps*,
77 static sk_sp<TextureProxy> MakeLazy(SkISize dimensions,
82 static sk_sp<TextureProxy> MakeFullyLazy(const TextureInfo&,
88 TextureProxy(SkISize dimensions,
[all …]
DCopyTask.h19 class TextureProxy; variable
50 static sk_sp<CopyTextureToBufferTask> Make(sk_sp<TextureProxy>,
63 CopyTextureToBufferTask(sk_sp<TextureProxy>,
69 sk_sp<TextureProxy> fTextureProxy;
78 static sk_sp<CopyTextureToTextureTask> Make(sk_sp<TextureProxy> srcProxy,
80 sk_sp<TextureProxy> dstProxy,
90 CopyTextureToTextureTask(sk_sp<TextureProxy> srcProxy,
92 sk_sp<TextureProxy> dstProxy,
95 sk_sp<TextureProxy> fSrcProxy;
97 sk_sp<TextureProxy> fDstProxy;
DDrawContext.h42 class TextureProxy; variable
51 static sk_sp<DrawContext> Make(sk_sp<TextureProxy> target,
60 TextureProxy* target() { return fTarget.get(); } in target()
61 const TextureProxy* target() const { return fTarget.get(); } in target()
81 sk_sp<TextureProxy> targetProxy,
90 sk_sp<TextureProxy> targetProxy,
129 DrawContext(sk_sp<TextureProxy>, const SkImageInfo&, const SkSurfaceProps&);
131 sk_sp<TextureProxy> fTarget;
DTextureProxyView.h25 TextureProxyView(sk_sp<TextureProxy> proxy, Swizzle swizzle) in TextureProxyView()
29 explicit TextureProxyView(sk_sp<TextureProxy> proxy) in TextureProxyView()
51 if (const TextureProxy* proxy = this->proxy()) { in mipmapped()
57 TextureProxy* proxy() const { return fProxy.get(); } in proxy()
58 sk_sp<TextureProxy> refProxy() const { return fProxy; } in refProxy()
80 sk_sp<TextureProxy> detachProxy() { in detachProxy()
91 sk_sp<TextureProxy> fProxy;
DCopyTask.cpp58 sk_sp<CopyTextureToBufferTask> CopyTextureToBufferTask::Make(sk_sp<TextureProxy> textureProxy, in Make()
70 CopyTextureToBufferTask::CopyTextureToBufferTask(sk_sp<TextureProxy> textureProxy, in CopyTextureToBufferTask()
90 if (!TextureProxy::InstantiateIfNotLazy(resourceProvider, fTextureProxy.get())) { in prepareResources()
109 sk_sp<CopyTextureToTextureTask> CopyTextureToTextureTask::Make(sk_sp<TextureProxy> srcProxy, in Make()
111 sk_sp<TextureProxy> dstProxy, in Make()
119 CopyTextureToTextureTask::CopyTextureToTextureTask(sk_sp<TextureProxy> srcProxy, in CopyTextureToTextureTask()
121 sk_sp<TextureProxy> dstProxy, in CopyTextureToTextureTask()
137 if (!TextureProxy::InstantiateIfNotLazy(resourceProvider, fSrcProxy.get())) { in prepareResources()
145 if (!TextureProxy::InstantiateIfNotLazy(resourceProvider, fDstProxy.get())) { in prepareResources()
DDrawPass.h38 class TextureProxy; variable
60 sk_sp<TextureProxy> target,
68 TextureProxy* target() const { return fTarget.get(); } in target()
102 DrawPass(sk_sp<TextureProxy> target,
108 sk_sp<TextureProxy> fTarget;
124 SkTArray<sk_sp<TextureProxy>> fSampledTextures;
DUploadTask.h25 class TextureProxy; variable
51 sk_sp<TextureProxy> targetProxy,
69 sk_sp<TextureProxy>,
75 sk_sp<TextureProxy> fTextureProxy;
92 sk_sp<TextureProxy> targetProxy,
DRecording.cpp26 std::unordered_set<sk_sp<TextureProxy>, ProxyHash>&& nonVolatileLazyProxies, in Recording() argument
27 std::unordered_set<sk_sp<TextureProxy>, ProxyHash>&& volatileLazyProxies, in Recording()
116 TextureProxy* surfaceTexture = replaySurface->backingTextureProxy(); in addCommands()
148 fTargetProxy = TextureProxy::MakeFullyLazy( in LazyProxyData()
155 TextureProxy* Recording::LazyProxyData::lazyProxy() { return fTargetProxy.get(); } in lazyProxy()
157 sk_sp<TextureProxy> Recording::LazyProxyData::refLazyProxy() { return fTargetProxy; } in refLazyProxy()
DYUVATextureProxies.h43 TextureProxy* proxy(int i) const { return fProxies[i].get(); } in proxy()
45 const std::array<sk_sp<TextureProxy>, SkYUVAInfo::kMaxPlanes>& proxies() const { in proxies()
49 sk_sp<TextureProxy> refProxy(int i) const { return fProxies[i]; } in refProxy()
60 std::array<sk_sp<TextureProxy>, SkYUVAInfo::kMaxPlanes> fProxies;
DRenderPassTask.h31 sk_sp<TextureProxy> target);
42 sk_sp<TextureProxy> target);
46 sk_sp<TextureProxy> fTarget;
DPietRenderTask.h18 class TextureProxy; variable
22 PietRenderInstance(sk_sp<const skgpu::piet::Scene> scene, sk_sp<TextureProxy> targetProxy) in PietRenderInstance()
36 sk_sp<TextureProxy> fTargetProxy;
DDrawContext.cpp39 sk_sp<DrawContext> DrawContext::Make(sk_sp<TextureProxy> target, in Make()
53 DrawContext::DrawContext(sk_sp<TextureProxy> target, in DrawContext()
72 TextureProxy* proxy = this->target(); in readSurfaceView()
111 sk_sp<TextureProxy> targetProxy, in recordUpload()
131 sk_sp<TextureProxy> targetProxy, in recordPietSceneRender()
230 sk_sp<TextureProxy> targetProxy = sk_ref_sp(fDrawPasses[0]->target()); in snapRenderPassTask()
DRenderPassTask.cpp22 sk_sp<TextureProxy> target) { in Make()
34 sk_sp<TextureProxy> target) in RenderPassTask()
44 if (!TextureProxy::InstantiateIfNotLazy(resourceProvider, fTarget.get())) { in prepareResources()
DImage_Graphite.cpp139 sk_sp<TextureProxy> Image::MakePromiseImageLazyProxy( in MakePromiseImageLazyProxy()
206 return TextureProxy::MakeLazy(dimensions, in MakePromiseImageLazyProxy()
247 sk_sp<TextureProxy> proxy = Image::MakePromiseImageLazyProxy(dimensions, in MakeGraphitePromiseTexture()
284 sk_sp<TextureProxy> proxy(new TextureProxy(std::move(texture))); in MakeGraphiteFromBackendTexture()
DDevice.h40 class TextureProxy; variable
54 sk_sp<TextureProxy>,
59 sk_sp<TextureProxy>,
98 TextureProxy* target();
DDrawPass.cpp173 SkTArray<sk_sp<TextureProxy>>&& detachTextures() { return fProxyCache.detach(); } in detachTextures()
178 const TextureProxy* fProxy;
179 operator sk_sp<TextureProxy>() const { return sk_ref_sp(fProxy); } in operator sk_sp<TextureProxy>()
181 using TextureProxyCache = DenseBiMap<const TextureProxy*, sk_sp<TextureProxy>, ProxyRef>;
398 DrawPass::DrawPass(sk_sp<TextureProxy> target, in DrawPass()
410 sk_sp<TextureProxy> target, in Make()
624 if (!TextureProxy::InstantiateIfNotLazy(resourceProvider, fSampledTextures[i].get())) { in prepareResources()
DPipelineData.h55 using SampledTexture = std::pair<sk_sp<TextureProxy>, SamplerDesc>;
70 sk_sp<TextureProxy> proxy) { in add()
102 sk_sp<TextureProxy> proxy) {
DDrawAtlas.h25 class TextureProxy; variable
109 const sk_sp<TextureProxy>* getProxies() const { return fProxies; } in getProxies()
232 sk_sp<TextureProxy> fProxies[PlotLocator::kMaxMultitexturePages];
DSurface_Graphite.h20 class TextureProxy; variable
76 TextureProxy* backingTextureProxy();
DRecorder.cpp133 std::unordered_set<sk_sp<TextureProxy>, Recording::ProxyHash> nonVolatileLazyProxies; in snap()
134 std::unordered_set<sk_sp<TextureProxy>, Recording::ProxyHash> volatileLazyProxies; in snap()
282 sk_sp<TextureProxy> proxy(new TextureProxy(std::move(texture))); in updateBackendTexture()
DUploadTask.cpp29 sk_sp<TextureProxy> textureProxy, in UploadInstance()
79 sk_sp<TextureProxy> textureProxy, in Make()
183 if (!TextureProxy::InstantiateIfNotLazy(resourceProvider, fTextureProxy.get())) { in prepareResources()
231 sk_sp<TextureProxy> textureProxy, in recordUpload()
/external/skia/include/gpu/graphite/
DRecording.h27 class TextureProxy; variable
49 TextureProxy* lazyProxy();
50 sk_sp<TextureProxy> refLazyProxy();
56 sk_sp<TextureProxy> fTargetProxy;
60 std::size_t operator()(const sk_sp<TextureProxy>& proxy) const { in operator()
66 std::unordered_set<sk_sp<TextureProxy>, ProxyHash>&& nonVolatileLazyProxies,
67 std::unordered_set<sk_sp<TextureProxy>, ProxyHash>&& volatileLazyProxies,
80 std::unordered_set<sk_sp<TextureProxy>, ProxyHash> fNonVolatileLazyProxies;
81 std::unordered_set<sk_sp<TextureProxy>, ProxyHash> fVolatileLazyProxies;
DContext.h37 class TextureProxy; variable
119 void asyncReadPixels(const TextureProxy* textureProxy,
137 PixelTransferResult transferPixels(const TextureProxy*,
/external/skia/tests/graphite/
DTextureProxyTest.cpp46 sk_sp<TextureProxy> textureProxy; in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
47 textureProxy = TextureProxy::Make(caps, in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
55 textureProxy = TextureProxy::Make(caps, in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
65 textureProxy = TextureProxy::Make(caps, in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
89 textureProxy = TextureProxy::MakeLazy( in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
100 textureProxy = TextureProxy::MakeLazy( in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
108 textureProxy = TextureProxy::MakeLazy( in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
119 textureProxy = TextureProxy::MakeLazy( in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
130 textureProxy = TextureProxy::MakeFullyLazy( in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
156 textureProxy = TextureProxy::Make(caps, in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
[all …]

12