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

Unified Diff: bench/AAClipBench.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 | « 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 657b6ffdc630490c74f605201077681a3d1f788b..f91216e965619aebc7850675006f25a8d5859fc2 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->clipPath(fClipPath, SkCanvas::kReplace_Op, fDoAA);
} else {
- canvas->clipRect(fClipRect, SkRegion::kReplace_Op, fDoAA);
+ canvas->clipRect(fClipRect, SkCanvas::kReplace_Op, fDoAA);
}
canvas->drawRect(fDrawRect, paint);
@@ -130,8 +130,8 @@ protected:
SkASSERT(path.isConvex());
canvas->clipPath(path,
- 0 == depth ? SkRegion::kReplace_Op :
- SkRegion::kIntersect_Op,
+ 0 == depth ? SkCanvas::kReplace_Op :
+ SkCanvas::kIntersect_Op,
fDoAA);
if (kNestingDepth == depth) {
« 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