Raster into an SkPicture before rendering a DisplayList.
commit5a685845ab0da9c089bce7caaafdc4339beb6d7c
authorschenney <schenney@chromium.org>
Thu, 12 Mar 2015 17:58:11 +0000 (12 10:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 Mar 2015 17:58:48 +0000 (12 17:58 +0000)
tree373a9400cb6c061cb785b442c4c1de8a2bf14e34
parentf9459bbef7b9817d9c0a69aa34501f85f174ddea
Raster into an SkPicture before rendering a DisplayList.

Rasterizing a display list is more than 2x slower than rasterizing
in the existing architecture. This is due to recording more with a
display list and we have no bounding hierarchy to cull content quickly.

We can address this by creating an SkPicture from the list, with a bounding
hierarchy, and rasterizing that instead. The result is slightly faster than
the non-S.P. pipeline but uses 2x more memory.

Identical patch to https://codereview.chromium.org/966443003/. Committing
TBR thanks to previous LGTM for exact same patch. Expectations have been
updated.

TBR=chrishtr,ajuma
BUG=464738

Review URL: https://codereview.chromium.org/1004753002

Cr-Commit-Position: refs/heads/master@{#320317}
cc/resources/display_item_list.cc
cc/resources/display_item_list.h
cc/resources/display_list_recording_source.cc