diff options
author | Robert Phillips <robertphillips@google.com> | 2016-11-04 11:59:10 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-07 15:56:19 +0000 |
commit | 84a812061f1d16aa6d349ca065bf67d06767bbc2 (patch) | |
tree | 11f467989d4303a1fc62b8b7805547d0b77013fe /include/private/GrRenderTargetProxy.h | |
parent | 739c5bf111baf977fe418a24fa00ce260989ee9a (diff) |
Add GrTextureRenderTargetProxy and support switching between RT & Tex Proxies
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4427
Change-Id: Ie7662299953592f564bb27a4df4ea101f743403e
Reviewed-on: https://skia-review.googlesource.com/4427
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/private/GrRenderTargetProxy.h')
-rw-r--r-- | include/private/GrRenderTargetProxy.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/private/GrRenderTargetProxy.h b/include/private/GrRenderTargetProxy.h index c124dddd79..3bad9df9e4 100644 --- a/include/private/GrRenderTargetProxy.h +++ b/include/private/GrRenderTargetProxy.h @@ -18,7 +18,7 @@ class GrTextureProvider; // required // Beware: the uniqueID of the RenderTargetProxy will usually be different than // the uniqueID of the RenderTarget it represents! -class GrRenderTargetProxy : public GrSurfaceProxy { +class GrRenderTargetProxy : virtual public GrSurfaceProxy { public: /** * The caller gets the creation ref. @@ -65,13 +65,14 @@ public: SkDEBUGCODE(void validate(GrContext*) const;) -private: +protected: // Deferred version GrRenderTargetProxy(const GrCaps&, const GrSurfaceDesc&, SkBackingFit, SkBudgeted); // Wrapped version GrRenderTargetProxy(sk_sp<GrRenderTarget> rt); +private: size_t onGpuMemorySize() const override; // For wrapped render targets the actual GrRenderTarget is stored in the GrIORefProxy class. |