diff options
author | vollick <vollick@chromium.org> | 2016-02-29 21:00:43 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-01 05:01:47 +0000 |
commit | 299bf1f63b8253c77530b904874f3435f9bde6d3 (patch) | |
tree | 093621b8fc836d3aa87357b06b1976ec83569360 /cc/trees/layer_tree_host_common.cc | |
parent | 84e53c857ee87964ca99b52cc892a407b56e2dca (diff) | |
download | chromium_src-299bf1f63b8253c77530b904874f3435f9bde6d3.zip chromium_src-299bf1f63b8253c77530b904874f3435f9bde6d3.tar.gz chromium_src-299bf1f63b8253c77530b904874f3435f9bde6d3.tar.bz2 |
Introduce LayerListImpl
In this cl, the LayerTreeImpl constructs a LayerListImpl.
The idea being that most plumbing won't need to change at
first to get the list to where it needs to be. The first
consumer of the LayerTreeImpl that I'm attempting to
teach to speak LayerListImpl-ese is the LayerImpl. That
has not been completely finished in this cl so that it
doesn't become too big and difficult to review.
NB: since the actual storage of the LayerImpls doesn't
change in this cl (they're still in the LayerTreeImpl),
there's no need to guard this work behind a flag.
BUG=557194
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1746603002
Cr-Commit-Position: refs/heads/master@{#378398}
Diffstat (limited to 'cc/trees/layer_tree_host_common.cc')
-rw-r--r-- | cc/trees/layer_tree_host_common.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc index c8baceb..ba55171 100644 --- a/cc/trees/layer_tree_host_common.cc +++ b/cc/trees/layer_tree_host_common.cc @@ -1099,7 +1099,7 @@ static float TranslationFromActiveTreeLayerScreenSpaceTransform( LayerTreeImpl* layer_tree_impl = pending_tree_layer->layer_tree_impl(); if (layer_tree_impl) { LayerImpl* active_tree_layer = - layer_tree_impl->FindActiveTreeLayerById(pending_tree_layer->id()); + layer_tree_impl->list()->FindActiveLayerById(pending_tree_layer->id()); if (active_tree_layer) { gfx::Transform active_tree_screen_space_transform = active_tree_layer->draw_properties().screen_space_transform; @@ -1606,10 +1606,11 @@ void LayerTreeHostCommon::CalculateDrawProperties( if (layer_tree_impl->IsPendingTree() && layer_tree_impl->is_first_frame_after_commit()) { LayerImpl* active_tree_root = - layer_tree_impl->FindActiveTreeLayerById(inputs->root_layer->id()); + layer_tree_impl->list()->FindActiveLayerById( + inputs->root_layer->id()); float jitter = 0.f; if (active_tree_root) { - LayerImpl* last_scrolled_layer = layer_tree_impl->LayerById( + LayerImpl* last_scrolled_layer = layer_tree_impl->list()->LayerById( active_tree_root->layer_tree_impl()->LastScrolledLayerId()); jitter = CalculateFrameJitter(last_scrolled_layer); } |