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

Unified Diff: bench/AAClipBench.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 | « no previous file | gm/aaclip.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/AAClipBench.cpp
diff --git a/bench/AAClipBench.cpp b/bench/AAClipBench.cpp
index 4cc9abe9fc9a17af655316b8d46023c1f01950bd..a56e6b8ebaa2638f2b0df389edb3fdd39f36bd64 100644
--- a/bench/AAClipBench.cpp
+++ b/bench/AAClipBench.cpp
@@ -59,9 +59,9 @@ protected:
canvas->save();
#if 1
if (fDoPath) {
- canvas->clipPath(fClipPath, SkRegion::kReplace_Op, fDoAA);
+ canvas->legacyClipPath(fClipPath, SkRegion::kReplace_Op, fDoAA);
} else {
- canvas->clipRect(fClipRect, SkRegion::kReplace_Op, fDoAA);
+ canvas->legacyClipRect(fClipRect, SkRegion::kReplace_Op, fDoAA);
}
canvas->drawRect(fDrawRect, paint);
@@ -129,7 +129,7 @@ protected:
path.addRoundRect(temp, SkIntToScalar(3), SkIntToScalar(3));
SkASSERT(path.isConvex());
- canvas->clipPath(path,
+ canvas->legacyClipPath(path,
0 == depth ? SkRegion::kReplace_Op :
SkRegion::kIntersect_Op,
fDoAA);
« no previous file with comments | « no previous file | gm/aaclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698