aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RecordOptsTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/RecordOptsTest.cpp')
-rw-r--r--tests/RecordOptsTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/RecordOptsTest.cpp b/tests/RecordOptsTest.cpp
index cdc0350e53..dd5035b216 100644
--- a/tests/RecordOptsTest.cpp
+++ b/tests/RecordOptsTest.cpp
@@ -131,7 +131,9 @@ DEF_TEST(RecordOpts_NoopSaveLayerDrawRestore, r) {
recorder.saveLayer(&bounds, NULL);
recorder.drawRect(draw, goodDrawPaint);
recorder.restore();
- assert_savelayer_restore(r, &record, 0, false);
+ if (!SkCanvas::Internal_Private_GetIgnoreSaveLayerBounds()) {
+ assert_savelayer_restore(r, &record, 0, false);
+ }
// SaveLayer/Restore removed: no bounds + no paint = no point.
recorder.saveLayer(NULL, NULL);