diff options
author | reed <reed@google.com> | 2016-09-21 11:15:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-21 11:15:07 -0700 |
commit | 669983856d99b9312be3166b7dd1f8483a90c315 (patch) | |
tree | a0a65286af33fae8a77e0d5e8a06f064bb656575 /gm/simpleaaclip.cpp | |
parent | df55827ae6291e44d4da54bdcbb8505538b3c54d (diff) |
allow clip calls w/o op param, remove unnecessary kReplace ops
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2357333002
Review-Url: https://codereview.chromium.org/2357333002
Diffstat (limited to 'gm/simpleaaclip.cpp')
-rw-r--r-- | gm/simpleaaclip.cpp | 4 |
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); } |