Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: gm/simpleaaclip.cpp

Issue 2357333002: allow clip calls w/o op param, remove unnecessary kReplace ops (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/samplerstress.cpp ('k') | gm/skbug1719.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/simpleaaclip.cpp
diff --git a/gm/simpleaaclip.cpp b/gm/simpleaaclip.cpp
index 87dc6877ef5a9cfe4269f97507f6f712842a51e6..9a8fe61eaa0c1e8756b6caaef20045f7df7efbfa 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);
}
« no previous file with comments | « gm/samplerstress.cpp ('k') | gm/skbug1719.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698