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

Unified Diff: gm/clip_strokerect.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/circularclips.cpp ('k') | gm/complexclip.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/clip_strokerect.cpp
diff --git a/gm/clip_strokerect.cpp b/gm/clip_strokerect.cpp
index 707229214a004c642c2f1a765db8c2669654689d..b3d7497ca1288783dc033d086289aaec384e519d 100644
--- a/gm/clip_strokerect.cpp
+++ b/gm/clip_strokerect.cpp
@@ -36,7 +36,7 @@ protected:
SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20);
canvas->save();
- canvas->clipRect(rect, SkRegion::kReplace_Op, true);
+ canvas->legacyClipRect(rect, SkRegion::kReplace_Op, true);
canvas->drawRect(r, p);
canvas->restore();
@@ -54,7 +54,7 @@ protected:
SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19);
canvas->save();
- canvas->clipRect(rect2, SkRegion::kReplace_Op, true);
+ canvas->legacyClipRect(rect2, SkRegion::kReplace_Op, true);
canvas->drawRect(r2, p);
canvas->restore();
« no previous file with comments | « gm/circularclips.cpp ('k') | gm/complexclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698