aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RecorderTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/RecorderTest.cpp')
-rw-r--r--tests/RecorderTest.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/RecorderTest.cpp b/tests/RecorderTest.cpp
index 7a2755699f..e0abacef38 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;