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

Unified Diff: gm/blurredclippedcircle.cpp

Issue 2355483002: abstract name of clipping ops, to transtion to a more restricted set (Closed)
Patch Set: no need for ifdef for globals 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/circularclips.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/blurredclippedcircle.cpp
diff --git a/gm/blurredclippedcircle.cpp b/gm/blurredclippedcircle.cpp
index bf49cd61e53ce462ac52b39ee8ea481073e8025f..a0870649da985a7651cff72b55b64376bee0682f 100644
--- a/gm/blurredclippedcircle.cpp
+++ b/gm/blurredclippedcircle.cpp
@@ -45,18 +45,18 @@ protected:
SkRect clipRect1 = SkRect::MakeLTRB(0, 0,
SkIntToScalar(kWidth), SkIntToScalar(kHeight));
- canvas->clipRect(clipRect1, SkRegion::kIntersect_Op, false);
+ canvas->clipRect(clipRect1);
canvas->save();
- canvas->clipRect(clipRect1, SkRegion::kIntersect_Op, false);
+ canvas->clipRect(clipRect1);
canvas->drawRect(clipRect1, whitePaint);
canvas->save();
SkRect clipRect2 = SkRect::MakeLTRB(8, 8, 288, 288);
SkRRect clipRRect = SkRRect::MakeOval(clipRect2);
- canvas->clipRRect(clipRRect, SkRegion::kDifference_Op, true);
+ canvas->clipRRect(clipRRect, SkCanvas::kDifference_Op, true);
SkRect r = SkRect::MakeLTRB(4, 4, 292, 292);
SkRRect rr = SkRRect::MakeOval(r);
« no previous file with comments | « gm/bigblurs.cpp ('k') | gm/circularclips.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698