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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11704003: cc: Move more functionality from host to LayerTreeImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 12 months 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
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 55f6452ded8bc55344b72f71dc08478de00335a7..0d722c9e9f2c6f127e629b5d9f62302fce12bc6a 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -219,8 +219,6 @@ LayerTreeHostImpl::LayerTreeHostImpl(const LayerTreeSettings& settings, LayerTre
ManagedMemoryPolicy::CUTOFF_ALLOW_EVERYTHING,
0,
ManagedMemoryPolicy::CUTOFF_ALLOW_NOTHING)
- , m_backgroundColor(0)
- , m_hasTransparentBackground(false)
, m_needsUpdateDrawProperties(false)
, m_pinchGestureActive(false)
, m_fpsCounter(FrameRateCounter::create(m_proxy->hasImplThread()))
@@ -614,9 +612,9 @@ bool LayerTreeHostImpl::calculateRenderPasses(FrameData& frame)
}
#endif
- if (!m_hasTransparentBackground) {
+ if (!activeTree()->has_transparent_background()) {
frame.renderPasses.last()->has_transparent_background = false;
- appendQuadsToFillScreen(frame.renderPasses.last(), rootLayer(), m_backgroundColor, occlusionTracker);
+ appendQuadsToFillScreen(frame.renderPasses.last(), rootLayer(), activeTree()->background_color(), occlusionTracker);
}
if (drawFrame)
@@ -1000,12 +998,6 @@ static LayerImpl* findScrollLayerForContentLayer(LayerImpl* layerImpl)
return 0;
}
-void LayerTreeHostImpl::setRootLayer(scoped_ptr<LayerImpl> layer)
-{
- m_activeTree->SetRootLayer(layer.Pass());
- setNeedsUpdateDrawProperties();
-}
-
void LayerTreeHostImpl::createPendingTree()
{
CHECK(!m_pendingTree);
@@ -1046,12 +1038,6 @@ void LayerTreeHostImpl::activatePendingTree()
m_client->onHasPendingTreeStateChanged(pendingTree());
}
-scoped_ptr<LayerImpl> LayerTreeHostImpl::detachLayerTree()
-{
- scoped_ptr<LayerImpl> layer = m_activeTree->DetachLayerTree();
- return layer.Pass();
-}
-
void LayerTreeHostImpl::setVisible(bool visible)
{
DCHECK(m_proxy->isImplThread());
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698