Index: include/core/SkPixelRef.h |
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h |
index c4a7c4e33d5235227c13847916b8688f650a4349..b87b0dc114b34958ff36f93ea3d464320334ae60 100644 |
--- a/include/core/SkPixelRef.h |
+++ b/include/core/SkPixelRef.h |
@@ -60,6 +60,10 @@ public: |
SkPixelRef(const SkImageInfo&, SkBaseMutex* mutex); |
virtual ~SkPixelRef(); |
+ const SkImageInfo& info() const { |
+ return fInfo; |
+ } |
+ |
/** Return the pixel memory returned from lockPixels, or null if the |
lockCount is 0. |
*/ |
@@ -291,6 +295,8 @@ protected: |
private: |
SkBaseMutex* fMutex; // must remain in scope for the life of this object |
+ SkImageInfo fInfo; |
+ |
void* fPixels; |
SkColorTable* fColorTable; // we do not track ownership, subclass does |
int fLockCount; |