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

Unified Diff: gm/megalooper.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/imagefilters.cpp ('k') | gm/path_stroke_with_zero_length.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/megalooper.cpp
diff --git a/gm/megalooper.cpp b/gm/megalooper.cpp
index 6f071cb72c2094883ba048bbfb0a82bd31bb2dbf..86dd617f444c06389b341d2d198411e6f7c08edf 100644
--- a/gm/megalooper.cpp
+++ b/gm/megalooper.cpp
@@ -91,8 +91,8 @@ private:
outerClip.offset(x, y);
canvas->save();
- canvas->clipRect(outerClip, SkRegion::kIntersect_Op);
- canvas->clipRect(innerClip, SkRegion::kDifference_Op);
+ canvas->clipRect(outerClip, SkCanvas::kIntersect_Op);
+ canvas->clipRect(innerClip, SkCanvas::kDifference_Op);
SkPaint paint;
paint.setAntiAlias(true);
@@ -146,8 +146,8 @@ private:
rect.offset(x, y);
canvas->save();
- canvas->clipRect(outerClip, SkRegion::kIntersect_Op);
- canvas->clipRect(rect, SkRegion::kDifference_Op);
+ canvas->clipRect(outerClip, SkCanvas::kIntersect_Op);
+ canvas->clipRect(rect, SkCanvas::kDifference_Op);
// move the rect to where we want the blur to appear
rect.offset(gBlurOffsets[i]);
@@ -195,8 +195,8 @@ private:
paint.setLooper(create4Looper(-kOffsetToOutsideClip-kHalfSquareSize, 0));
canvas->save();
- canvas->clipRect(outerClip, SkRegion::kIntersect_Op);
- canvas->clipRect(rect, SkRegion::kDifference_Op);
+ canvas->clipRect(outerClip, SkCanvas::kIntersect_Op);
+ canvas->clipRect(rect, SkCanvas::kDifference_Op);
rect.offset(SkIntToScalar(kOffsetToOutsideClip+kHalfSquareSize), 0);
canvas->drawRect(rect, paint);
« no previous file with comments | « gm/imagefilters.cpp ('k') | gm/path_stroke_with_zero_length.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698