Index: tests/RecordOptsTest.cpp |
diff --git a/tests/RecordOptsTest.cpp b/tests/RecordOptsTest.cpp |
index cdc0350e535ddfc81450a44a50f78a11ebd5afc4..dd5035b216b66e52f156d4e117f0b9943f8913bc 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); |