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

Side by Side Diff: cc/trees/tree_synchronizer.h

Issue 2080703005: cc: Remove LayerTreeImpl::root_layer usage outside tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « cc/trees/property_tree.cc ('k') | cc/trees/tree_synchronizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_TREE_SYNCHRONIZER_H_ 5 #ifndef CC_TREES_TREE_SYNCHRONIZER_H_
6 #define CC_TREES_TREE_SYNCHRONIZER_H_ 6 #define CC_TREES_TREE_SYNCHRONIZER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class LayerImpl; 15 class LayerImpl;
16 class LayerTreeHost; 16 class LayerTreeHost;
17 class LayerTreeImpl; 17 class LayerTreeImpl;
18 class Layer; 18 class Layer;
19 19
20 class CC_EXPORT TreeSynchronizer { 20 class CC_EXPORT TreeSynchronizer {
21 public: 21 public:
22 // Accepts a Layer tree and returns a reference to a LayerImpl tree that 22 // Accepts a Layer tree and returns a reference to a LayerImpl tree that
23 // duplicates the structure of the Layer tree, reusing the LayerImpls in the 23 // duplicates the structure of the Layer tree, reusing the LayerImpls in the
24 // tree provided by old_layer_impl_root if possible. 24 // tree provided by old_layer_impl_root if possible.
25 static void SynchronizeTrees(Layer* layer_root, LayerTreeImpl* tree_impl); 25 static void SynchronizeTrees(Layer* layer_root, LayerTreeImpl* tree_impl);
26 static void SynchronizeTrees(LayerImpl* layer_root, LayerTreeImpl* tree_impl); 26 static void SynchronizeTrees(LayerTreeImpl* pending_tree,
27 LayerTreeImpl* active_tree);
27 28
28 static void PushLayerProperties(LayerTreeImpl* pending_tree, 29 static void PushLayerProperties(LayerTreeImpl* pending_tree,
29 LayerTreeImpl* active_tree); 30 LayerTreeImpl* active_tree);
30 static void PushLayerProperties(LayerTreeHost* host_tree, 31 static void PushLayerProperties(LayerTreeHost* host_tree,
31 LayerTreeImpl* impl_tree); 32 LayerTreeImpl* impl_tree);
32 33
33 private: 34 private:
34 TreeSynchronizer(); // Not instantiable. 35 TreeSynchronizer(); // Not instantiable.
35 36
36 DISALLOW_COPY_AND_ASSIGN(TreeSynchronizer); 37 DISALLOW_COPY_AND_ASSIGN(TreeSynchronizer);
37 }; 38 };
38 39
39 } // namespace cc 40 } // namespace cc
40 41
41 #endif // CC_TREES_TREE_SYNCHRONIZER_H_ 42 #endif // CC_TREES_TREE_SYNCHRONIZER_H_
OLDNEW
« no previous file with comments | « cc/trees/property_tree.cc ('k') | cc/trees/tree_synchronizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698