Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: cc/layer_tree_host.cc

Issue 11704003: cc: Move more functionality from host to LayerTreeImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/layer_tree_host.cc
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
index 91276deb8ad5bcb005ec733ce1713e3e0f543d63..49a08952cf10ac3476d6213bb29bd2cb55e7186d 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -334,13 +334,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++;

Powered by Google App Engine
This is Rietveld 408576698