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

Unified Diff: cc/layer_impl.cc

Issue 11419284: Move second internal recursion to a precomputation in layer_tree_host_common.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleaned up and rebased 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_impl.cc
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
index 521c5bca21192b7ec63a9eef95994e66c2147bf4..06a2c820e856819f3fde1c7c90ddaa71a68d3f23 100644
--- a/cc/layer_impl.cc
+++ b/cc/layer_impl.cc
@@ -108,19 +108,6 @@ void LayerImpl::createRenderSurface()
m_drawProperties.render_target = this;
}
-int LayerImpl::descendantsDrawContent()
-{
- int result = 0;
- for (size_t i = 0; i < m_children.size(); ++i) {
- if (m_children[i]->drawsContent())
- ++result;
- result += m_children[i]->descendantsDrawContent();
- if (result > 1)
- return result;
- }
- return result;
-}
-
LayerTreeHostImpl* LayerImpl::layerTreeHostImpl() const {
return m_layerTreeImpl->layer_tree_host_impl();
}
@@ -192,6 +179,11 @@ void LayerImpl::appendDebugBorderQuad(QuadSink& quadList, const SharedQuadState*
quadList.append(debugBorderQuad.PassAs<DrawQuad>(), appendQuadsData);
}
+bool LayerImpl::hasDelegatedContent() const
+{
+ return false;
+}
+
bool LayerImpl::hasContributingDelegatedRenderPasses() const
{
return false;
« no previous file with comments | « cc/layer_impl.h ('k') | cc/layer_tree_host_common.cc » ('j') | cc/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698