Index: src/image/SkImage_Base.h |
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h |
index 01b39be383abe25299881113ba9e45b074e2659d..8c9a73ba36c92f1858be61946293df62d8f2c260 100644 |
--- a/src/image/SkImage_Base.h |
+++ b/src/image/SkImage_Base.h |
@@ -54,7 +54,7 @@ public: |
virtual void onPreroll(GrContext*) const {} |
- virtual GrTexture* getTexture() const { return nullptr; } |
+ virtual GrTexture* peekTexture() const { return nullptr; } |
// return a read-only copy of the pixels. We promise to not modify them, |
// but only inspect them (or encode them). |
@@ -73,6 +73,9 @@ public: |
virtual bool onIsLazyGenerated() const { return false; } |
+ // Caller must call unref when they are done. |
+ virtual GrTexture* asTextureRef(GrContext*, SkImageUsageType) const { return nullptr; } |
+ |
private: |
const SkSurfaceProps fProps; |