summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-05 01:27:00 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-05 01:27:00 +0000
commita3029014d891defc3df0073a06ae782f85df45df (patch)
treeb9039300bb0257949f5319b3cb9a896d68abc85a /cc/layer_tree_host.cc
parent5c53cb0204b731dfa34ffee02f3544bbcaf79995 (diff)
downloadchromium_src-a3029014d891defc3df0073a06ae782f85df45df.zip
chromium_src-a3029014d891defc3df0073a06ae782f85df45df.tar.gz
chromium_src-a3029014d891defc3df0073a06ae782f85df45df.tar.bz2
cc: Move more functionality from host to LayerTreeImpl
This cleans up some longstanding TODOs that were creating when splitting out logic into LayerTreeImpl. It's possible that some of the helpers to get at active tree layers (root, scrolling, etc) could be moved, but given that scrolling only happens on the active tree (with the pending tree being updated with the result), these accessors could arguably stay permanently. This also moves background color / has transparent background to the tree itself, so that these changes will synchronize with any content on that tree. Things like viewport, device scale, and debug state are considered host-specific and take effect immediately. R=nduca@chromium.org BUG=155209 Review URL: https://chromiumcodereview.appspot.com/11704003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host.cc')
-rw-r--r--cc/layer_tree_host.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
index 12ab72b..3ac83bf 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -332,13 +332,13 @@ void LayerTreeHost::finishCommitOnImplThread(LayerTreeHostImpl* hostImpl)
else
syncTree->set_hud_layer(0);
- // TODO(enne): Do these need to be moved to layer tree as well?
syncTree->set_source_frame_number(commitNumber());
+ syncTree->set_background_color(m_backgroundColor);
+ syncTree->set_has_transparent_background(m_hasTransparentBackground);
+
hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize());
hostImpl->setDeviceScaleFactor(deviceScaleFactor());
hostImpl->setPageScaleFactorAndLimits(m_pageScaleFactor, m_minPageScaleFactor, m_maxPageScaleFactor);
- hostImpl->setBackgroundColor(m_backgroundColor);
- hostImpl->setHasTransparentBackground(m_hasTransparentBackground);
hostImpl->setDebugState(m_debugState);
m_commitNumber++;