Index: src/core/SkPictureRecord.h |
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h |
index c305f101d760856972987229dfef7c66c6f155ce..7e21fab1120892f1fc6775af9e8801cfaaf8ea9e 100644 |
--- a/src/core/SkPictureRecord.h |
+++ b/src/core/SkPictureRecord.h |
@@ -14,6 +14,7 @@ |
#include "SkPictureData.h" |
#include "SkTArray.h" |
#include "SkTDArray.h" |
+#include "SkTHash.h" |
#include "SkWriter32.h" |
// These macros help with packing and unpacking a single byte value and |
@@ -226,7 +227,11 @@ private: |
SkTArray<SkBitmap> fBitmaps; |
SkTArray<SkPaint> fPaints; |
- SkTArray<SkPath> fPaths; |
+ |
+ struct PathHash { |
+ uint32_t operator()(const SkPath& p) { return p.getGenerationID(); } |
+ }; |
+ SkTHashMap<SkPath, int, PathHash> fPaths; |
SkWriter32 fWriter; |