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

Unified Diff: src/utils/debugger/SkDrawCommand.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 | « src/utils/SkProxyCanvas.cpp ('k') | tests/CanvasStateHelpers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDrawCommand.cpp
diff --git a/src/utils/debugger/SkDrawCommand.cpp b/src/utils/debugger/SkDrawCommand.cpp
index 142c4a44b1f818a00821e63535b210acc3b7ef65..96ecf1fdb3e2b7732ad5158c0d38833bf3c4b9f7 100644
--- a/src/utils/debugger/SkDrawCommand.cpp
+++ b/src/utils/debugger/SkDrawCommand.cpp
@@ -203,7 +203,7 @@ SkClipPathCommand::SkClipPathCommand(const SkPath& path, SkRegion::Op op, bool d
}
void SkClipPathCommand::execute(SkCanvas* canvas) const {
- canvas->clipPath(fPath, fOp, fDoAA);
+ canvas->legacyClipPath(fPath, fOp, fDoAA);
}
bool SkClipPathCommand::render(SkCanvas* canvas) const {
@@ -221,7 +221,7 @@ SkClipRegionCommand::SkClipRegionCommand(const SkRegion& region, SkRegion::Op op
}
void SkClipRegionCommand::execute(SkCanvas* canvas) const {
- canvas->clipRegion(fRegion, fOp);
+ canvas->legacyClipRegion(fRegion, fOp);
}
SkClipRectCommand::SkClipRectCommand(const SkRect& rect, SkRegion::Op op, bool doAA)
@@ -236,7 +236,7 @@ SkClipRectCommand::SkClipRectCommand(const SkRect& rect, SkRegion::Op op, bool d
}
void SkClipRectCommand::execute(SkCanvas* canvas) const {
- canvas->clipRect(fRect, fOp, fDoAA);
+ canvas->legacyClipRect(fRect, fOp, fDoAA);
}
SkClipRRectCommand::SkClipRRectCommand(const SkRRect& rrect, SkRegion::Op op, bool doAA)
@@ -251,7 +251,7 @@ SkClipRRectCommand::SkClipRRectCommand(const SkRRect& rrect, SkRegion::Op op, bo
}
void SkClipRRectCommand::execute(SkCanvas* canvas) const {
- canvas->clipRRect(fRRect, fOp, fDoAA);
+ canvas->legacyClipRRect(fRRect, fOp, fDoAA);
}
bool SkClipRRectCommand::render(SkCanvas* canvas) const {
« no previous file with comments | « src/utils/SkProxyCanvas.cpp ('k') | tests/CanvasStateHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698