diff options
author | 2016-12-02 15:36:59 -0500 | |
---|---|---|
committer | 2016-12-07 10:34:39 -0500 | |
commit | 6e49c9f007c879f05b035c40c0ba543c00f9d0d0 (patch) | |
tree | 236bada9584af476e4989530fcc6154e589ae64a /libs/hwui/Snapshot.cpp | |
parent | 7bdd131a2458a833af31251b10a37d7ee2b646ed (diff) |
switch over clip calls to use SkClipOp instead of SkRegion::Op
Change-Id: I67d23c487b5249bc31d96e3b2393f693c0b2bcff
Diffstat (limited to 'libs/hwui/Snapshot.cpp')
-rw-r--r-- | libs/hwui/Snapshot.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/hwui/Snapshot.cpp b/libs/hwui/Snapshot.cpp index f61c3e9825f8..3f08009b6be9 100644 --- a/libs/hwui/Snapshot.cpp +++ b/libs/hwui/Snapshot.cpp @@ -72,19 +72,19 @@ Snapshot::Snapshot(Snapshot* s, int saveFlags) // Clipping /////////////////////////////////////////////////////////////////////////////// -void Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { +void Snapshot::clipRegionTransformed(const SkRegion& region, SkClipOp op) { flags |= Snapshot::kFlagClipSet; - mClipArea->clipRegion(region, op); + mClipArea->clipRegion(region, static_cast<SkRegion::Op>(op)); } -void Snapshot::clip(const Rect& localClip, SkRegion::Op op) { +void Snapshot::clip(const Rect& localClip, SkClipOp op) { flags |= Snapshot::kFlagClipSet; - mClipArea->clipRectWithTransform(localClip, transform, op); + mClipArea->clipRectWithTransform(localClip, transform, static_cast<SkRegion::Op>(op)); } -void Snapshot::clipPath(const SkPath& path, SkRegion::Op op) { +void Snapshot::clipPath(const SkPath& path, SkClipOp op) { flags |= Snapshot::kFlagClipSet; - mClipArea->clipPathWithTransform(path, transform, op); + mClipArea->clipPathWithTransform(path, transform, static_cast<SkRegion::Op>(op)); } void Snapshot::setClip(float left, float top, float right, float bottom) { |