| 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));
|
|
|