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

Unified Diff: cc/layer.cc

Issue 11710004: cc: Block the main thread for texture layers during impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TRACE_EVENT_INSTANT Created 7 years, 11 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.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.cc
diff --git a/cc/layer.cc b/cc/layer.cc
index dfc1c91a9d5e4eb877a38abc04ee07846c7fcd4e..f5c57e0e01bf004988e091811e93671027c19940 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -129,6 +129,22 @@ bool Layer::blocksPendingCommit() const
return false;
}
+bool Layer::blocksPendingCommitRecursive() const
+{
+ if (blocksPendingCommit())
+ return true;
+ if (maskLayer() && maskLayer()->blocksPendingCommitRecursive())
+ return true;
+ if (replicaLayer() && replicaLayer()->blocksPendingCommitRecursive())
+ return true;
+ for (size_t i = 0; i < m_children.size(); ++i)
+ {
+ if (m_children[i]->blocksPendingCommitRecursive())
+ return true;
+ }
+ return false;
+}
+
void Layer::setParent(Layer* layer)
{
DCHECK(!layer || !layer->hasAncestor(this));
« no previous file with comments | « cc/layer.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698