diff options
author | mtklein <mtklein@chromium.org> | 2014-08-11 08:08:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-11 08:08:43 -0700 |
commit | 5ad6ee1b2ce54f8e59b9f5a337c688a98a4b0f2a (patch) | |
tree | f1198834aac166b6c3d9f79e056e0f2364c65d7e /tests | |
parent | 136aa8fb7e8e00e0a7eed0c721fab070949222ad (diff) |
Plumbing for using a BBH in SkRecordDraw.
For now this only creates a degenerate bounding box hierarchy where all ops
just have maximal bounds. I will flesh out FillBounds in future CL(s).
Not quite sure why QuadTree and TileGrid aren't drawing right---haven't even
looked at the diffs yet---so I've disabled those test modes for now. RTree
seems fine, so that'll at least get us coverage for all this new plumbing.
BUG=skia:
R=robertphillips@google.com, mtklein@google.com, reed@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/454123003
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RecordDrawTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp index 38e1222a0d..2690013e16 100644 --- a/tests/RecordDrawTest.cpp +++ b/tests/RecordDrawTest.cpp @@ -38,7 +38,7 @@ DEF_TEST(RecordDraw_Abort, r) { SkRecorder canvas(&rerecord, W, H); JustOneDraw callback; - SkRecordDraw(record, &canvas, &callback); + SkRecordDraw(record, &canvas, NULL/*bbh*/, &callback); REPORTER_ASSERT(r, 3 == rerecord.count()); assert_type<SkRecords::Save> (r, rerecord, 0); @@ -53,7 +53,7 @@ DEF_TEST(RecordDraw_Unbalanced, r) { SkRecord rerecord; SkRecorder canvas(&rerecord, W, H); - SkRecordDraw(record, &canvas); + SkRecordDraw(record, &canvas, NULL/*bbh*/, NULL/*callback*/); REPORTER_ASSERT(r, 4 == rerecord.count()); assert_type<SkRecords::Save> (r, rerecord, 0); @@ -77,7 +77,7 @@ DEF_TEST(RecordDraw_SetMatrixClobber, r) { translate.setTranslate(20, 20); translateCanvas.setMatrix(translate); - SkRecordDraw(scaleRecord, &translateCanvas); + SkRecordDraw(scaleRecord, &translateCanvas, NULL/*bbh*/, NULL/*callback*/); REPORTER_ASSERT(r, 4 == translateRecord.count()); assert_type<SkRecords::SetMatrix>(r, translateRecord, 0); assert_type<SkRecords::Save> (r, translateRecord, 1); |