Index: src/core/SkBitmapProcState.h |
diff --git a/src/core/SkBitmapProcState.h b/src/core/SkBitmapProcState.h |
index 349194f3b455c64c6f58a8285efbec8f709856b1..70d7c0cb04e1c4eb586b6cc1fd0094580b02294e 100644 |
--- a/src/core/SkBitmapProcState.h |
+++ b/src/core/SkBitmapProcState.h |
@@ -13,6 +13,7 @@ |
#include "SkBitmap.h" |
#include "SkBitmapFilter.h" |
#include "SkMatrix.h" |
+#include "SkScaledImageCache.h" |
#define FractionalInt_IS_64BIT |
@@ -35,8 +36,9 @@ struct SkConvolutionProcs; |
struct SkBitmapProcState { |
- SkBitmapProcState(): fBitmapFilter(NULL) {} |
+ SkBitmapProcState(): fScaledCacheID(NULL), fBitmapFilter(NULL) {} |
~SkBitmapProcState() { |
+ SkASSERT(NULL == fScaledCacheID); |
SkDELETE(fBitmapFilter); |
} |
@@ -157,6 +159,8 @@ private: |
SkBitmap fOrigBitmap; // CONSTRUCTOR |
SkBitmap fScaledBitmap; // chooseProcs |
+ SkScaledImageCache::ID* fScaledCacheID; |
+ |
MatrixProc chooseMatrixProc(bool trivial_matrix); |
bool chooseProcs(const SkMatrix& inv, const SkPaint&); |
ShaderProc32 chooseShaderProc32(); |