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/RecordDrawTest.cpp | |
parent | 39edf7664f50b6c890b933b5bbed67a8735b349b (diff) |
add testing flag to ignore saveLayer bounds
BUG=skia:
Review URL: https://codereview.chromium.org/819123003
Diffstat (limited to 'tests/RecordDrawTest.cpp')
-rw-r--r-- | tests/RecordDrawTest.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp index e830af4b43..d306cad6e9 100644 --- a/tests/RecordDrawTest.cpp +++ b/tests/RecordDrawTest.cpp @@ -275,9 +275,11 @@ DEF_TEST(RecordDraw_SaveLayerBoundsAffectsClipBounds, r) { TestBBH bbh; SkRecordFillBounds(SkRect::MakeWH(50, 50), record, &bbh); REPORTER_ASSERT(r, bbh.fEntries.count() == 3); - REPORTER_ASSERT(r, sloppy_rect_eq(bbh.fEntries[0].bounds, SkRect::MakeLTRB(10, 10, 40, 40))); - REPORTER_ASSERT(r, sloppy_rect_eq(bbh.fEntries[1].bounds, SkRect::MakeLTRB(20, 20, 30, 30))); - REPORTER_ASSERT(r, sloppy_rect_eq(bbh.fEntries[2].bounds, SkRect::MakeLTRB(10, 10, 40, 40))); + if (!SkCanvas::Internal_Private_GetIgnoreSaveLayerBounds()) { + REPORTER_ASSERT(r, sloppy_rect_eq(bbh.fEntries[0].bounds, SkRect::MakeLTRB(10, 10, 40, 40))); + REPORTER_ASSERT(r, sloppy_rect_eq(bbh.fEntries[1].bounds, SkRect::MakeLTRB(20, 20, 30, 30))); + REPORTER_ASSERT(r, sloppy_rect_eq(bbh.fEntries[2].bounds, SkRect::MakeLTRB(10, 10, 40, 40))); + } } DEF_TEST(RecordDraw_drawImage, r){ |