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

Unified Diff: cc/layer.h

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.h
diff --git a/cc/layer.h b/cc/layer.h
index a510ab60e00df897e0189bb3b931bd626fcc18af..b324ce99c54a93e568a1da0a679faeb20531e353 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -67,6 +67,7 @@ public:
void setChildren(const LayerList&);
const LayerList& children() const { return m_children; }
+ Layer* childAt(size_t index) const;
enne (OOO) 2013/01/17 23:34:55 Can this be not const?
jamesr 2013/01/18 01:16:42 No, TreeSynchronizer calls Layer::pushPropertiesTo
enne (OOO) 2013/01/18 01:21:35 Maybe you misunderstood? I was asking if this coul
jamesr 2013/01/18 01:27:14 Oh right! Definitely, anyone calling this should
void setAnchorPoint(const gfx::PointF&);
gfx::PointF anchorPoint() const { return m_anchorPoint; }
@@ -291,6 +292,9 @@ public:
virtual bool canClipSelf() const;
+ // Constructs a LayerImpl of the correct runtime type for this Layer type.
+ virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl);
+
protected:
friend class LayerImpl;
friend class TreeSynchronizer;
@@ -315,8 +319,6 @@ protected:
scoped_refptr<Layer> m_maskLayer;
- // Constructs a LayerImpl of the correct runtime type for this Layer type.
- virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl);
int m_layerId;
// When true, the layer is about to perform an update. Any commit requests
« no previous file with comments | « cc/io_surface_layer_impl.cc ('k') | cc/layer.cc » ('j') | cc/layer_tree_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698