diff options
author | 2016-12-12 10:02:12 -0500 | |
---|---|---|
committer | 2016-12-12 15:38:31 +0000 | |
commit | ebfce6d9b42198e04288a15953f40c395a7b6139 (patch) | |
tree | edb5bfa26c2efb5c58f7071efb3811ca33e23560 /src/gpu/GrClipStackClip.cpp | |
parent | c30833327f0dda75a8fbe061f3f1966d1f6621a3 (diff) |
change SkClipOp to a class enum
BUG=skia:
Change-Id: I25dbe6d6b8666a2a0a7be7bdd2ae0b067868d14e
Reviewed-on: https://skia-review.googlesource.com/5718
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/gpu/GrClipStackClip.cpp')
-rw-r--r-- | src/gpu/GrClipStackClip.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrClipStackClip.cpp b/src/gpu/GrClipStackClip.cpp index 1172bc6a7b..9fc218224e 100644 --- a/src/gpu/GrClipStackClip.cpp +++ b/src/gpu/GrClipStackClip.cpp @@ -19,6 +19,7 @@ #include "effects/GrConvexPolyEffect.h" #include "effects/GrRRectEffect.h" #include "effects/GrTextureDomain.h" +#include "SkClipOpPriv.h" typedef SkClipStack::Element Element; typedef GrReducedClip::InitialState InitialState; @@ -204,16 +205,16 @@ static bool get_analytic_clip_processor(const ElementList& elements, bool invert; bool skip = false; switch (op) { - case SkRegion::kReplace_Op: + case kReplace_SkClipOp: SkASSERT(iter.get() == elements.head()); // Fallthrough, handled same as intersect. - case SkRegion::kIntersect_Op: + case kIntersect_SkClipOp: invert = false; if (iter.get()->contains(boundsInClipSpace)) { skip = true; } break; - case SkRegion::kDifference_Op: + case kDifference_SkClipOp: invert = true; // We don't currently have a cheap test for whether a rect is fully outside an // element's primitive, so don't attempt to set skip. |