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

Unified Diff: cc/tree_synchronizer.cc

Issue 11575018: cc: Add id->LayerImpl map to LayerTreeImpl (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
« cc/layer_tree_impl.h ('K') | « cc/render_surface_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tree_synchronizer.cc
diff --git a/cc/tree_synchronizer.cc b/cc/tree_synchronizer.cc
index 8f62f9bbb7796eeb32257a6173ec3526d5e1f853..17f237a467001b8819c88d33e3be5948880d6bf5 100644
--- a/cc/tree_synchronizer.cc
+++ b/cc/tree_synchronizer.cc
@@ -37,8 +37,8 @@ void TreeSynchronizer::collectExistingLayerImplRecursive(ScopedPtrLayerImplMap&
for (size_t i = 0; i < children.size(); ++i)
collectExistingLayerImplRecursive(oldLayers, children.take(i));
- collectExistingLayerImplRecursive(oldLayers, layerImpl->m_maskLayer.Pass());
- collectExistingLayerImplRecursive(oldLayers, layerImpl->m_replicaLayer.Pass());
+ collectExistingLayerImplRecursive(oldLayers, layerImpl->takeMaskLayer());
+ collectExistingLayerImplRecursive(oldLayers, layerImpl->takeReplicaLayer());
int id = layerImpl->id();
oldLayers.set(id, layerImpl.Pass());
« cc/layer_tree_impl.h ('K') | « cc/render_surface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698