diff options
author | vollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-28 12:20:33 +0000 |
---|---|---|
committer | vollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-28 12:20:33 +0000 |
commit | 7644fa2893d9b5c3ca52839dd958c9aa93d5638a (patch) | |
tree | f2d1ee3f0a7684ddffd7be1f85a9c7542033ae4c /cc/layers/layer_iterator_unittest.cc | |
parent | f69844eac656848a91b486aea5585877215d9e0d (diff) | |
download | chromium_src-7644fa2893d9b5c3ca52839dd958c9aa93d5638a.zip chromium_src-7644fa2893d9b5c3ca52839dd958c9aa93d5638a.tar.gz chromium_src-7644fa2893d9b5c3ca52839dd958c9aa93d5638a.tar.bz2 |
Don't clear render surfaces unnecessarily.
As an optimization, we used to clear render surfaces when they were
elided from the RenderSurfaceLayerList. It turns out that these surfaces
are still important from time to time; a scroll child will need to
access the transforms of these surfaces in order to put its clip in the
right space.
This CL retains the layer lists and it also updates RenderSurface to
own a LayerList rather than a RenderSurfaceLayerList (which was always
a bit of a kludge).
R=danakj@chromium.org
BUG=366386
Review URL: https://codereview.chromium.org/250803013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/layer_iterator_unittest.cc')
-rw-r--r-- | cc/layers/layer_iterator_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/layers/layer_iterator_unittest.cc b/cc/layers/layer_iterator_unittest.cc index 61d7a61..89e504a 100644 --- a/cc/layers/layer_iterator_unittest.cc +++ b/cc/layers/layer_iterator_unittest.cc @@ -68,7 +68,7 @@ void ResetCounts(RenderSurfaceLayerList* render_surface_layer_list) { layer_index < render_surface->layer_list().size(); ++layer_index) { TestLayer* layer = static_cast<TestLayer*>( - render_surface->layer_list().at(layer_index)); + render_surface->layer_list().at(layer_index).get()); layer->count_representing_target_surface_ = -1; layer->count_representing_contributing_surface_ = -1; |