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

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: 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
« no previous file with comments | « cc/layer.h ('k') | cc/layer_tree_host.h » ('j') | cc/thread_proxy.cc » ('J')
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 28cff9864bd9642365b933fc5b8ae7c6ed2a6ce5..7a8138006b36ddd247f9ddc2cce7b50d71c033fe 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -130,6 +130,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') | cc/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698