aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/simpleaaclip.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-09-21 11:15:07 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-21 11:15:07 -0700
commit669983856d99b9312be3166b7dd1f8483a90c315 (patch)
treea0a65286af33fae8a77e0d5e8a06f064bb656575 /gm/simpleaaclip.cpp
parentdf55827ae6291e44d4da54bdcbb8505538b3c54d (diff)
allow clip calls w/o op param, remove unnecessary kReplace ops
Diffstat (limited to 'gm/simpleaaclip.cpp')
-rw-r--r--gm/simpleaaclip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/simpleaaclip.cpp b/gm/simpleaaclip.cpp
index 87dc6877ef..9a8fe61eaa 100644
--- a/gm/simpleaaclip.cpp
+++ b/gm/simpleaaclip.cpp
@@ -106,11 +106,11 @@ protected:
// create the clip mask with the supplied boolean op
if (kPath_GeomType == fGeomType) {
// path-based case
- canvas->clipPath(fBasePath, SkCanvas::kReplace_Op, true);
+ canvas->clipPath(fBasePath, true);
canvas->clipPath(fRectPath, op, true);
} else {
// rect-based case
- canvas->clipRect(fBase, SkCanvas::kReplace_Op, true);
+ canvas->clipRect(fBase, true);
canvas->clipRect(fRect, op, true);
}