Index: include/core/SkPicture.h |
=================================================================== |
--- include/core/SkPicture.h (revision 14349) |
+++ include/core/SkPicture.h (working copy) |
@@ -364,6 +364,28 @@ |
SkAutoTUnref<SkPathHeap> fPathHeap; // reference counted |
+ enum ContentFlags { |
+ /** |
+ * These flags continue SkPictInfo's chain since they are stored |
+ * in the SkPicture header (temporarily). |
+ */ |
robertphillips
2014/04/24 18:04:07
SkPictInfo is in src\core\SkPicturePlayback.h. Don
bsalomon
2014/04/24 18:20:52
4 << 1?
robertphillips
2014/04/24 18:27:27
New version should address this.
|
+ kFirstBit = (/*SkPictInfo::kLastPublic_Flag*/ 4 << 1), |
+ |
+ /** |
+ * This picture has at least one paint with a PathEffect |
+ */ |
+ kHasPathEffects_ContentFlag = kFirstBit, |
bsalomon
2014/04/24 18:20:52
Hm... It seems more flexible to count things rathe
|
+ }; |
+ |
+ uint32_t fContentFlags; |
+ |
+ void setHasPathEffects() { |
+ fContentFlags |= kHasPathEffects_ContentFlag; |
+ } |
+ bool getHasPathEffects() const { |
+ return SkToBool(fContentFlags & kHasPathEffects_ContentFlag); |
+ } |
+ |
const SkPath& getPath(int index) const; |
int addPathToHeap(const SkPath& path); |