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

Unified Diff: gm/circularclips.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/bigblurs.cpp ('k') | gm/clip_strokerect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/circularclips.cpp
diff --git a/gm/circularclips.cpp b/gm/circularclips.cpp
index 39be1a5aec81abc05aca0d1468ad266f9f3ae348..f505310e4de688ff37d9b27883dc375de1696c1e 100644
--- a/gm/circularclips.cpp
+++ b/gm/circularclips.cpp
@@ -54,8 +54,8 @@ protected:
canvas->save();
canvas->scale(10, 10);
canvas->translate(-((fX1 + fX2)/2 - fR), -(fY - 2*fR/3));
- canvas->clipPath(fCircle1, SkCanvas::kReplace_Op, true);
- canvas->clipPath(fCircle2, SkCanvas::kIntersect_Op, true);
+ canvas->clipPath(fCircle1, true);
+ canvas->clipPath(fCircle2, true);
canvas->drawRect(rect, fillPaint);
@@ -73,7 +73,7 @@ protected:
for (size_t op = 0; op < SK_ARRAY_COUNT(ops); op++) {
canvas->save();
- canvas->clipPath(fCircle1, SkCanvas::kReplace_Op);
+ canvas->clipPath(fCircle1);
canvas->clipPath(fCircle2, ops[op]);
canvas->drawRect(rect, fillPaint);
« no previous file with comments | « gm/bigblurs.cpp ('k') | gm/clip_strokerect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698