From 669983856d99b9312be3166b7dd1f8483a90c315 Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 21 Sep 2016 11:15:07 -0700 Subject: 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 --- gm/simpleaaclip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gm/simpleaaclip.cpp') 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); } -- cgit v1.2.3