diff options
author | schenney <schenney@chromium.org> | 2015-03-05 07:43:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-05 07:43:10 -0800 |
commit | 2dd3b6647dc726f36fd8774b3d0d2e83b493aeac (patch) | |
tree | 14642943da226d88b521524664d334f726548589 /tests/RecordDrawTest.cpp | |
parent | dc812222a7488d2a0e39b4a09c81c9f000d4b869 (diff) |
Update SkPicture cull rects with RTree information
When computed, the RTree for an SkPicture will have a root
bounds that reflects the best bounding information available,
rather than the best estimate at the time the picture recorder
is created. Given that creators frequently don't know ahead of
time what will be drawn, the RTree bound is often tighter.
Perf testing on Chrome indicates a small raster performance
advantage. For upcoming painting changes in Chrome the
performance advantage is much larger.
BUG=
Review URL: https://codereview.chromium.org/971803002
Diffstat (limited to 'tests/RecordDrawTest.cpp')
-rw-r--r-- | tests/RecordDrawTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp index cf138b8d4e..baee712b37 100644 --- a/tests/RecordDrawTest.cpp +++ b/tests/RecordDrawTest.cpp @@ -133,6 +133,7 @@ struct TestBBH : public SkBBoxHierarchy { void search(const SkRect& query, SkTDArray<unsigned>* results) const SK_OVERRIDE {} size_t bytesUsed() const SK_OVERRIDE { return 0; } + SkRect getRootBound() const SK_OVERRIDE { return SkRect::MakeEmpty(); } struct Entry { unsigned opIndex; |