OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_LAYER_TREE_H_ | 5 #ifndef CC_TREES_LAYER_TREE_H_ |
6 #define CC_TREES_LAYER_TREE_H_ | 6 #define CC_TREES_LAYER_TREE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 #include <unordered_set> | 10 #include <unordered_set> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "ui/gfx/geometry/size.h" | 23 #include "ui/gfx/geometry/size.h" |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class TimeDelta; | 26 class TimeDelta; |
27 } // namespace base | 27 } // namespace base |
28 | 28 |
29 namespace cc { | 29 namespace cc { |
30 | 30 |
31 namespace proto { | 31 namespace proto { |
32 class LayerTree; | 32 class LayerTree; |
33 class LayerUpdate; | |
34 } // namespace proto | 33 } // namespace proto |
35 | 34 |
36 class ClientPictureCache; | 35 class ClientPictureCache; |
37 class EnginePictureCache; | 36 class EnginePictureCache; |
38 class HeadsUpDisplayLayer; | 37 class HeadsUpDisplayLayer; |
39 class Layer; | 38 class Layer; |
40 class LayerTreeHost; | 39 class LayerTreeHost; |
41 class LayerTreeImpl; | 40 class LayerTreeImpl; |
42 class LayerTreeSettings; | 41 class LayerTreeSettings; |
43 class MutatorHost; | 42 class MutatorHost; |
44 struct PendingPageScaleAnimation; | 43 struct PendingPageScaleAnimation; |
45 class UIResourceManager; | |
46 class SwapPromiseManager; | |
47 class SurfaceSequenceGenerator; | |
48 | 44 |
49 class CC_EXPORT LayerTree : public MutatorHostClient { | 45 class CC_EXPORT LayerTree : public MutatorHostClient { |
50 public: | 46 public: |
51 using LayerSet = std::unordered_set<Layer*>; | 47 using LayerSet = std::unordered_set<Layer*>; |
52 using LayerIdMap = std::unordered_map<int, Layer*>; | 48 using LayerIdMap = std::unordered_map<int, Layer*>; |
53 | 49 |
54 LayerTree(MutatorHost* mutator_host, LayerTreeHost* layer_tree_host); | 50 LayerTree(MutatorHost* mutator_host, LayerTreeHost* layer_tree_host); |
55 virtual ~LayerTree(); | 51 virtual ~LayerTree(); |
56 | 52 |
57 void SetRootLayer(scoped_refptr<Layer> root_layer); | 53 void SetRootLayer(scoped_refptr<Layer> root_layer); |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 // external embedder. | 307 // external embedder. |
312 EnginePictureCache* engine_picture_cache_; | 308 EnginePictureCache* engine_picture_cache_; |
313 ClientPictureCache* client_picture_cache_; | 309 ClientPictureCache* client_picture_cache_; |
314 | 310 |
315 DISALLOW_COPY_AND_ASSIGN(LayerTree); | 311 DISALLOW_COPY_AND_ASSIGN(LayerTree); |
316 }; | 312 }; |
317 | 313 |
318 } // namespace cc | 314 } // namespace cc |
319 | 315 |
320 #endif // CC_TREES_LAYER_TREE_H_ | 316 #endif // CC_TREES_LAYER_TREE_H_ |
OLD | NEW |