Index: include/core/SkMaskFilter.h |
diff --git a/include/core/SkMaskFilter.h b/include/core/SkMaskFilter.h |
index f4bcd2edbd4c4bb72167063642c33312fbd007a0..1a299b3fa052e82680436e5a2b56b837da5a1e7a 100644 |
--- a/include/core/SkMaskFilter.h |
+++ b/include/core/SkMaskFilter.h |
@@ -19,6 +19,7 @@ class GrContext; |
class GrPaint; |
class SkBitmap; |
class SkBlitter; |
+class SkCachedData; |
class SkMatrix; |
class SkPath; |
class SkRasterClip; |
@@ -162,10 +163,17 @@ protected: |
kUnimplemented_FilterReturn |
}; |
- struct NinePatch { |
+ class NinePatch : ::SkNoncopyable { |
+ public: |
+ NinePatch() : fCache(NULL) { |
+ fMask.fImage = NULL; |
+ } |
+ ~NinePatch(); |
+ |
SkMask fMask; // fBounds must have [0,0] in its top-left |
SkIRect fOuterRect; // width/height must be >= fMask.fBounds' |
SkIPoint fCenter; // identifies center row/col for stretching |
+ SkCachedData* fCache; |
}; |
/** |