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

Unified Diff: gm/complexclip.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/clip_strokerect.cpp ('k') | gm/complexclip2.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/complexclip.cpp
diff --git a/gm/complexclip.cpp b/gm/complexclip.cpp
index 61a19fd48624e02f0debdda4d03c0afac27b6b7b..c74cf8db7de126a8e1de67a8f44f8c4747d271f6 100644
--- a/gm/complexclip.cpp
+++ b/gm/complexclip.cpp
@@ -131,8 +131,8 @@ protected:
SkPath::kEvenOdd_FillType);
clipB.setFillType(doInvB ? SkPath::kInverseEvenOdd_FillType :
SkPath::kEvenOdd_FillType);
- canvas->clipPath(clipA, SkRegion::kIntersect_Op, fDoAAClip);
- canvas->clipPath(clipB, gOps[op].fOp, fDoAAClip);
+ canvas->clipPath(clipA, kIntersect_SkClipOp, fDoAAClip);
+ canvas->legacyClipPath(clipB, gOps[op].fOp, fDoAAClip);
// draw path clipped
canvas->drawPath(path, pathPaint);
« no previous file with comments | « gm/clip_strokerect.cpp ('k') | gm/complexclip2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698