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

Unified Diff: tests/RecorderTest.cpp

Issue 803913005: Remove SkCanvas::isDrawingToLayer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init fix 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 | « tests/CanvasTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/RecorderTest.cpp
diff --git a/tests/RecorderTest.cpp b/tests/RecorderTest.cpp
index 7a2755699fcb318713927fb4d2ff611759b399bb..e0abacef38648f000d7a07728278cdb1f8f62389 100644
--- a/tests/RecorderTest.cpp
+++ b/tests/RecorderTest.cpp
@@ -125,32 +125,6 @@ DEF_TEST(Recorder_RefPictures, r) {
REPORTER_ASSERT(r, pic->unique());
}
-DEF_TEST(Recorder_IsDrawingToLayer, r) {
- SkRecord record;
- SkRecorder recorder(&record, 100, 100);
-
- // We'll save, saveLayer, save, and saveLayer, then restore them all,
- // checking that isDrawingToLayer() is correct at each step.
-
- REPORTER_ASSERT(r, !recorder.isDrawingToLayer());
- recorder.save();
- REPORTER_ASSERT(r, !recorder.isDrawingToLayer());
- recorder.saveLayer(NULL, NULL);
- REPORTER_ASSERT(r, recorder.isDrawingToLayer());
- recorder.save();
- REPORTER_ASSERT(r, recorder.isDrawingToLayer());
- recorder.saveLayer(NULL, NULL);
- REPORTER_ASSERT(r, recorder.isDrawingToLayer());
- recorder.restore();
- REPORTER_ASSERT(r, recorder.isDrawingToLayer());
- recorder.restore();
- REPORTER_ASSERT(r, recorder.isDrawingToLayer());
- recorder.restore();
- REPORTER_ASSERT(r, !recorder.isDrawingToLayer());
- recorder.restore();
- REPORTER_ASSERT(r, !recorder.isDrawingToLayer());
-}
-
DEF_TEST(Recorder_drawImage_takeReference, reporter) {
SkAutoTUnref<SkImage> image;
« no previous file with comments | « tests/CanvasTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698