diff options
Diffstat (limited to 'src/core/SkPictureRecord.h')
-rw-r--r-- | src/core/SkPictureRecord.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h index c305f101d7..7e21fab112 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; |