Index: src/core/SkPictureFlat.h |
diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h |
index acd2d822b4b05cedd2c16cd2f0a010bebcb9c79a..beb2dd8338a894001b4a0fa4377216b3cd158666 100644 |
--- a/src/core/SkPictureFlat.h |
+++ b/src/core/SkPictureFlat.h |
@@ -7,7 +7,7 @@ |
#ifndef SkPictureFlat_DEFINED |
#define SkPictureFlat_DEFINED |
- |
+#include "SkCanvas.h" |
#include "SkChecksum.h" |
#include "SkChunkAlloc.h" |
#include "SkReadBuffer.h" |
@@ -126,15 +126,15 @@ enum SaveLayerRecFlatFlags { |
/////////////////////////////////////////////////////////////////////////////// |
// clipparams are packed in 5 bits |
-// doAA:1 | regionOp:4 |
+// doAA:1 | clipOp:4 |
-static inline uint32_t ClipParams_pack(SkRegion::Op op, bool doAA) { |
+static inline uint32_t ClipParams_pack(SkCanvas::ClipOp op, bool doAA) { |
unsigned doAABit = doAA ? 1 : 0; |
return (doAABit << 4) | op; |
} |
-static inline SkRegion::Op ClipParams_unpackRegionOp(uint32_t packed) { |
- return (SkRegion::Op)(packed & 0xF); |
+static inline SkCanvas::ClipOp ClipParams_unpackRegionOp(uint32_t packed) { |
+ return (SkCanvas::ClipOp)(packed & 0xF); |
} |
static inline bool ClipParams_unpackDoAA(uint32_t packed) { |