Index: src/lazy/SkLazyPixelRef.h |
diff --git a/src/lazy/SkLazyPixelRef.h b/src/lazy/SkLazyPixelRef.h |
index c51675dd5f301e648e20db0daa40db3a1d7faae6..a1f054e966f344cc17ce5cc2f048203c3cc487dc 100644 |
--- a/src/lazy/SkLazyPixelRef.h |
+++ b/src/lazy/SkLazyPixelRef.h |
@@ -65,12 +65,16 @@ protected: |
virtual bool onDecodeInto(int pow2, SkBitmap*) SK_OVERRIDE; |
private: |
+ // lazily initialized our cached info. Returns NULL on failure. |
+ const SkImage::Info* getCachedInfo(); |
scroggo
2013/10/21 18:49:24
style nit: other fields before methods.
|
+ |
bool fErrorInDecoding; |
SkData* fData; |
SkBitmapFactory::DecodeProc fDecodeProc; |
SkImageCache* fImageCache; |
intptr_t fCacheId; |
size_t fRowBytes; |
+ SkImage::Info fLazilyCachedInfo; |
#if LAZY_CACHE_STATS |
static int32_t gCacheHits; |