cc: Keep tilings texture size in sync
commit757ba9eec00ccd9802ad58d841563e73f11c2074
authorhendrikw <hendrikw@chromium.org>
Mon, 23 Mar 2015 21:13:09 +0000 (23 14:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Mar 2015 21:13:50 +0000 (23 21:13 +0000)
tree61c55c156a0f18c0a6ccf1efd6cf933fb037a79c
parent541203fdae95da5116a1a14acd8aeb39994de264
cc: Keep tilings texture size in sync

This approach keeps the viewport size as a property of the layerimpl,
doing this makes sure that the pending and active trees are in sync,
because the only way for the size to migrate from the pending to
active tree is via a push.

Since being in sync is all the matters, we avoid having to reach in from
outside of the layer and recreate tilings.

BUG=458750

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

Cr-Commit-Position: refs/heads/master@{#321851}
cc/layers/picture_layer.cc
cc/layers/picture_layer_impl.cc
cc/layers/picture_layer_impl.h
cc/layers/picture_layer_impl_unittest.cc
cc/test/fake_picture_layer_impl.cc
cc/trees/layer_tree_host_impl_unittest.cc
cc/trees/layer_tree_host_unittest.cc