cc: Remove EnsureRenderSurfaceLayerList, do UpdateDrawProps when needed.
commit8f7f29882ae400ad26b9ce946902c31203e8ab82
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 13 Jun 2014 00:23:32 +0000 (13 00:23 +0000)
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 13 Jun 2014 00:23:32 +0000 (13 00:23 +0000)
tree2279498f58d10f7db73b10271d82c57f574c3977
parent58866edd73b250c8ea710be74144b22a5d35e2cc
cc: Remove EnsureRenderSurfaceLayerList, do UpdateDrawProps when needed.

Hit testing is done directly on the layer tree, it doesn't use the
render surface layer list, but it does require draw properties. So,
remove EnsureRenderSurfaceLayerList and have the FindLayer* public
methods on LayerTreeImpl just do UpdateDrawProperties() if it is needed.

Since we update draw properties there, we only need to update them in
PrepareToDraw when they are dirty as well.

R=enne, vollick@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276864 0039d316-1c4b-4281-b951-d872f2087c98
cc/layers/layer_impl.cc
cc/layers/layer_impl.h
cc/layers/picture_image_layer_impl_unittest.cc
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl.h
cc/trees/layer_tree_host_impl_unittest.cc
cc/trees/layer_tree_impl.cc
cc/trees/layer_tree_impl.h