Index: src/core/SkPictureRecord.cpp |
=================================================================== |
--- src/core/SkPictureRecord.cpp (revision 13690) |
+++ src/core/SkPictureRecord.cpp (working copy) |
@@ -1644,7 +1644,11 @@ |
if (NULL == fPathHeap) { |
fPathHeap = SkNEW(SkPathHeap); |
} |
+#ifdef SK_DEDUP_PICTURE_PATHS |
+ return fPathHeap->insert(path); |
+#else |
return fPathHeap->append(path); |
+#endif |
} |
void SkPictureRecord::addPath(const SkPath& path) { |