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

Unified Diff: gm/simpleaaclip.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/samplerstress.cpp ('k') | gm/skbug1719.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/simpleaaclip.cpp
diff --git a/gm/simpleaaclip.cpp b/gm/simpleaaclip.cpp
index 950a1c025efada44bf2ce605cefac966a19d595f..4fbc3881f3695be41b44b1e3a9bcac8ad2b11fca 100644
--- a/gm/simpleaaclip.cpp
+++ b/gm/simpleaaclip.cpp
@@ -104,12 +104,12 @@ protected:
// create the clip mask with the supplied boolean op
if (kPath_GeomType == fGeomType) {
// path-based case
- canvas->clipPath(fBasePath, SkRegion::kReplace_Op, true);
- canvas->clipPath(fRectPath, op, true);
+ canvas->legacyClipPath(fBasePath, SkRegion::kReplace_Op, true);
+ canvas->legacyClipPath(fRectPath, op, true);
} else {
// rect-based case
- canvas->clipRect(fBase, SkRegion::kReplace_Op, true);
- canvas->clipRect(fRect, op, true);
+ canvas->legacyClipRect(fBase, SkRegion::kReplace_Op, true);
+ canvas->legacyClipRect(fRect, op, true);
}
// draw a rect that will entirely cover the clip mask area
« no previous file with comments | « gm/samplerstress.cpp ('k') | gm/skbug1719.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698