diff options
author | reed <reed@google.com> | 2014-12-22 11:58:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-22 11:58:30 -0800 |
commit | d990e2f14f14c36c3d0beb303dd0953c7aa1fcfa (patch) | |
tree | 28b10e1df0c6709bff31faff6a4535d4734c6693 /tests/RecordOptsTest.cpp | |
parent | 39edf7664f50b6c890b933b5bbed67a8735b349b (diff) |
add testing flag to ignore saveLayer bounds
BUG=skia:
Review URL: https://codereview.chromium.org/819123003
Diffstat (limited to 'tests/RecordOptsTest.cpp')
-rw-r--r-- | tests/RecordOptsTest.cpp | 4 |
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); |