cc: Do the math for a tile's content rect in layer space once.
commitd11f79b35cf3958bec49a8271c8a9059a983828f
authordanakj <danakj@chromium.org>
Mon, 31 Aug 2015 22:22:05 +0000 (31 15:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 31 Aug 2015 22:22:44 +0000 (31 22:22 +0000)
treeaf84f59e943975b39cb9872f7cde0cb6827d2a75
parentba7a73dd61db639f42cc6283939f8b44cc4ecc6c
cc: Do the math for a tile's content rect in layer space once.

We currently do this math in CoversRect(), GatherPixelRefs() and each
time a tile is rastered to compute damage. We also do this multiple
times in the process of creating a tile.

We can do this once at the time we create the tile and pass it around
and store it on the Tile instead. Less math!

R=vmpstr
BUG=342848
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#346491}
20 files changed:
cc/debug/rasterize_and_record_benchmark_impl.cc
cc/layers/picture_layer_impl.cc
cc/layers/picture_layer_impl.h
cc/playback/display_list_raster_source.cc
cc/playback/display_list_raster_source.h
cc/playback/display_list_raster_source_unittest.cc
cc/playback/display_list_recording_source_unittest.cc
cc/playback/picture_pile_impl.cc
cc/playback/picture_pile_impl.h
cc/playback/picture_pile_impl_unittest.cc
cc/playback/raster_source.h
cc/playback/recording_source_unittest.cc
cc/test/fake_picture_layer_tiling_client.cc
cc/test/fake_picture_layer_tiling_client.h
cc/tiles/picture_layer_tiling.cc
cc/tiles/picture_layer_tiling.h
cc/tiles/tile.cc
cc/tiles/tile.h
cc/tiles/tile_manager.cc
cc/tiles/tile_manager.h