aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-17 10:58:49 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-17 10:58:49 +0000
commit01ec2eb42e9c64f8d06afd51f80c055710147141 (patch)
treec599956d7d00e3795317abb4ae4f0a35ce0a3395 /include/core
parent24a93569abbd53917548f54f236d1e92795306a7 (diff)
Added Serialization of SkPath's bound
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPath.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index ae8ecb7997..fe983369a7 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -824,6 +824,14 @@ public:
SkDEBUGCODE(void validate() const;)
private:
+ enum SerializationOffsets {
+ kIsFinite_SerializationShift = 25,
+ kIsOval_SerializationShift = 24,
+ kConvexity_SerializationShift = 16,
+ kFillType_SerializationShift = 8,
+ kSegmentMask_SerializationShift = 0
+ };
+
SkTDArray<SkPoint> fPts;
SkTDArray<uint8_t> fVerbs;
mutable SkRect fBounds;