From 1b546462bb91e93cf2f033eb2dab53ec492b64ab Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Tue, 6 May 2014 21:32:19 +0000 Subject: SaveLayer is not a draw. Will keep thinking about the best way to handle this: - leave as-is - tag the records - some range check on T::kType - just list all Draw* in IsDraw BUG=skia:2378 R=fmalita@chromium.org, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/269543023 git-svn-id: http://skia.googlecode.com/svn/trunk@14602 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/RecordPatternTest.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/RecordPatternTest.cpp') diff --git a/tests/RecordPatternTest.cpp b/tests/RecordPatternTest.cpp index e013150072..4f51bdba24 100644 --- a/tests/RecordPatternTest.cpp +++ b/tests/RecordPatternTest.cpp @@ -190,3 +190,13 @@ DEF_TEST(RecordPattern_Complex, r) { REPORTER_ASSERT(r, !pattern.search(&record, &begin, &end)); } + +DEF_TEST(RecordPattern_SaveLayerIsNotADraw, r) { + Pattern1 pattern; + + SkRecord record; + SkRecorder recorder(SkRecorder::kWriteOnly_Mode, &record, 1920, 1200); + recorder.saveLayer(NULL, NULL); + + REPORTER_ASSERT(r, !pattern.match(&record, 0)); +} -- cgit v1.2.3