aboutsummaryrefslogtreecommitdiffstats
path: root/include/core/SkPixelRef.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkPixelRef.h')
-rw-r--r--include/core/SkPixelRef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h
index f1dab36..c0259af 100644
--- a/include/core/SkPixelRef.h
+++ b/include/core/SkPixelRef.h
@@ -25,6 +25,9 @@ class SkMutex;
class SkFlattenableReadBuffer;
class SkFlattenableWriteBuffer;
+// this is an opaque class, not interpreted by skia
+class SkGpuTexture;
+
/** \class SkPixelRef
This class is the smart container for pixel memory, and is used with
@@ -105,6 +108,10 @@ public:
*/
void setURI(const SkString& uri) { fURI = uri; }
+ /** Are we really wrapping a texture instead of a bitmap?
+ */
+ virtual SkGpuTexture* getTexture() { return NULL; }
+
// serialization
typedef SkPixelRef* (*Factory)(SkFlattenableReadBuffer&);