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

Unified Diff: gm/circularclips.cpp

Issue 777643003: use ClipOp instead of SkRegion for clipping (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 4730182252b3558bbe827e7f9638f4388dd403f4..2625946e37960eba1b93934281323e00e33702df 100644
--- a/gm/circularclips.cpp
+++ b/gm/circularclips.cpp
@@ -61,8 +61,8 @@ protected:
for (size_t op = 0; op < SK_ARRAY_COUNT(ops); op++) {
canvas->save();
- canvas->clipPath(fCircle1, SkRegion::kReplace_Op);
- canvas->clipPath(fCircle2, ops[op]);
+ canvas->legacyClipPath(fCircle1, SkRegion::kReplace_Op);
+ canvas->legacyClipPath(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