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

Unified Diff: cc/layer.cc

Issue 11882037: Activate LayerImpl tree with sync+push instead of pointer swap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: cc/layer.cc
diff --git a/cc/layer.cc b/cc/layer.cc
index a742d073f81de9864111049949510e06b4554998..7a263aaa6589db9db42813ab7e581b2fa0c6c40c 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -284,6 +284,12 @@ void Layer::setChildren(const LayerList& children)
addChild(children[i]);
}
+Layer* Layer::childAt(size_t index) const
+{
+ DCHECK_LT(index, m_children.size());
+ return m_children[index].get();
+}
+
void Layer::setAnchorPoint(const gfx::PointF& anchorPoint)
{
if (m_anchorPoint == anchorPoint)

Powered by Google App Engine
This is Rietveld 408576698