Index: include/private/GrTextureProxy.h |
diff --git a/include/private/GrTextureProxy.h b/include/private/GrTextureProxy.h |
index 75f09de80027d0facf784f1bdd67c6cbc5617d65..2693740c066f161024338a687ab069ca93a15d08 100644 |
--- a/include/private/GrTextureProxy.h |
+++ b/include/private/GrTextureProxy.h |
@@ -30,6 +30,21 @@ public: |
// Actually instantiate the backing texture, if necessary |
GrTexture* instantiate(GrTextureProvider*); |
+ // dispreferred entry point |
+ GrContext* getContext() { return nullptr; } // fTexture->getContext(); } |
+ |
+ bool readPixels(int left, int top, int width, int height, |
+ GrPixelConfig config, |
+ void* buffer, |
+ size_t rowBytes = 0, |
+ uint32_t pixelOpsFlags = 0); |
+ |
+ bool writePixels(int left, int top, int width, int height, |
+ GrPixelConfig config, |
+ const void* buffer, |
+ size_t rowBytes = 0, |
+ uint32_t pixelOpsFlags = 0); |
+ |
protected: |
// Deferred version |
GrTextureProxy(const GrSurfaceDesc& srcDesc, SkBackingFit, SkBudgeted, |