aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrClipStackClip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrClipStackClip.cpp')
-rw-r--r--src/gpu/GrClipStackClip.cpp7
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.