aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrTextureProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/private/GrTextureProxy.h')
-rw-r--r--include/private/GrTextureProxy.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/private/GrTextureProxy.h b/include/private/GrTextureProxy.h
index 75f09de800..a206e76e37 100644
--- a/include/private/GrTextureProxy.h
+++ b/include/private/GrTextureProxy.h
@@ -17,13 +17,6 @@ class GrTextureProvider;
// This class delays the acquisition of textures until they are actually required
class GrTextureProxy : virtual public GrSurfaceProxy {
public:
- // TODO: need to refine ownership semantics of 'srcData' if we're in completely
- // deferred mode
- static sk_sp<GrTextureProxy> Make(const GrCaps&, GrTextureProvider*, const GrSurfaceDesc&,
- SkBackingFit, SkBudgeted,
- const void* srcData = nullptr, size_t rowBytes = 0);
- static sk_sp<GrTextureProxy> Make(sk_sp<GrTexture>);
-
GrTextureProxy* asTextureProxy() override { return this; }
const GrTextureProxy* asTextureProxy() const override { return this; }
@@ -31,11 +24,13 @@ public:
GrTexture* instantiate(GrTextureProvider*);
protected:
+ friend class GrSurfaceProxy; // for ctors
+
// Deferred version
GrTextureProxy(const GrSurfaceDesc& srcDesc, SkBackingFit, SkBudgeted,
const void* srcData, size_t srcRowBytes);
// Wrapped version
- GrTextureProxy(sk_sp<GrTexture> tex);
+ GrTextureProxy(sk_sp<GrSurface>);
private:
size_t onGpuMemorySize() const override;