diff options
Diffstat (limited to 'src/image/SkImage_Base.h')
-rw-r--r-- | src/image/SkImage_Base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h index ec5556a50d..947af0e0d1 100644 --- a/src/image/SkImage_Base.h +++ b/src/image/SkImage_Base.h @@ -26,6 +26,11 @@ public: SkImage_Base(int width, int height, uint32_t uniqueID); virtual ~SkImage_Base(); + // User: returns image info for this SkImage. + // Implementors: if you can not return the value, return an invalid ImageInfo with w=0 & h=0 + // & unknown color space. + virtual SkImageInfo onImageInfo() const = 0; + virtual bool onPeekPixels(SkPixmap*) const { return false; } // Default impl calls onDraw |