Update SkPicture cull rects with RTree information
authorschenney <schenney@chromium.org>
Thu, 5 Mar 2015 15:43:10 +0000 (07:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Mar 2015 15:43:10 +0000 (07:43 -0800)
commit2dd3b6647dc726f36fd8774b3d0d2e83b493aeac
tree14642943da226d88b521524664d334f726548589
parentdc812222a7488d2a0e39b4a09c81c9f000d4b869
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
src/core/SkBBoxHierarchy.h
src/core/SkPictureRecorder.cpp
src/core/SkRTree.cpp
src/core/SkRTree.h
src/core/SkRecordDraw.cpp
tests/PictureTest.cpp
tests/RecordDrawTest.cpp