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

Unified Diff: tests/CanvasStateHelpers.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/debugger/SkDrawCommand.cpp ('k') | tests/CanvasStateTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/CanvasStateHelpers.cpp
diff --git a/tests/CanvasStateHelpers.cpp b/tests/CanvasStateHelpers.cpp
index 96972b8a1e3aa5f4ea142c85d18011349537b40a..cfb4d6b1c584ff6e564c6f8577b4bef970ea89cc 100644
--- a/tests/CanvasStateHelpers.cpp
+++ b/tests/CanvasStateHelpers.cpp
@@ -41,11 +41,11 @@ void complex_clips_draw(SkCanvas* canvas, int32_t left, int32_t top,
canvas->save();
SkRect clipRect = SkRect::MakeLTRB(SkIntToScalar(left), SkIntToScalar(top),
SkIntToScalar(right), SkIntToScalar(bottom));
- canvas->clipRect(clipRect, (SkRegion::Op) clipOp);
+ canvas->legacyClipRect(clipRect, (SkRegion::Op) clipOp);
canvas->drawColor(SK_ColorBLUE);
canvas->restore();
- canvas->clipRegion(localRegion, (SkRegion::Op) clipOp);
+ canvas->legacyClipRegion(localRegion, (SkRegion::Op) clipOp);
canvas->drawColor(SK_ColorBLUE);
}
« no previous file with comments | « src/utils/debugger/SkDrawCommand.cpp ('k') | tests/CanvasStateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698