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

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

Issue 2340143002: cc: Rename LayerTreeHost to LayerTreeHostInProcess. (Closed)
Patch Set: comment fix Created 4 years, 3 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/channel_main.h ('k') | cc/trees/layer_tree_host.h » ('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 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 15 matching lines...) Expand all
26 } // namespace base 26 } // namespace base
27 27
28 namespace cc { 28 namespace cc {
29 29
30 namespace proto { 30 namespace proto {
31 class LayerTree; 31 class LayerTree;
32 class LayerUpdate; 32 class LayerUpdate;
33 } // namespace proto 33 } // namespace proto
34 34
35 class AnimationHost; 35 class AnimationHost;
36 class ClientPictureCache;
37 class EnginePictureCache;
36 class HeadsUpDisplayLayer; 38 class HeadsUpDisplayLayer;
37 class Layer; 39 class Layer;
38 class LayerTreeHost; 40 class LayerTreeHost;
39 class LayerTreeImpl; 41 class LayerTreeImpl;
40 class LayerTreeSettings; 42 class LayerTreeSettings;
41 struct PendingPageScaleAnimation; 43 struct PendingPageScaleAnimation;
42 class UIResourceManager; 44 class UIResourceManager;
43 class SwapPromiseManager; 45 class SwapPromiseManager;
44 class SurfaceSequenceGenerator; 46 class SurfaceSequenceGenerator;
45 47
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void RemoveLayerShouldPushProperties(Layer* layer); 143 void RemoveLayerShouldPushProperties(Layer* layer);
142 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); 144 std::unordered_set<Layer*>& LayersThatShouldPushProperties();
143 bool LayerNeedsPushPropertiesForTesting(Layer* layer) const; 145 bool LayerNeedsPushPropertiesForTesting(Layer* layer) const;
144 146
145 virtual void SetNeedsMetaInfoRecomputation( 147 virtual void SetNeedsMetaInfoRecomputation(
146 bool needs_meta_info_recomputation); 148 bool needs_meta_info_recomputation);
147 bool needs_meta_info_recomputation() const { 149 bool needs_meta_info_recomputation() const {
148 return needs_meta_info_recomputation_; 150 return needs_meta_info_recomputation_;
149 } 151 }
150 152
153 void set_engine_picture_cache(EnginePictureCache* cache) {
154 engine_picture_cache_ = cache;
155 }
156 EnginePictureCache* engine_picture_cache() const {
157 return engine_picture_cache_;
158 }
159 void set_client_picture_cache(ClientPictureCache* cache) {
160 client_picture_cache_ = cache;
161 }
162 ClientPictureCache* client_picture_cache() const {
163 return client_picture_cache_;
164 }
165
151 void SetPageScaleFromImplSide(float page_scale); 166 void SetPageScaleFromImplSide(float page_scale);
152 void SetElasticOverscrollFromImplSide(gfx::Vector2dF elastic_overscroll); 167 void SetElasticOverscrollFromImplSide(gfx::Vector2dF elastic_overscroll);
153 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } 168 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; }
154 169
155 void UpdateHudLayer(bool show_hud_info); 170 void UpdateHudLayer(bool show_hud_info);
156 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } 171 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
157 172
158 virtual void SetNeedsFullTreeSync(); 173 virtual void SetNeedsFullTreeSync();
159 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } 174 bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
160 175
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 LayerIdMap layer_id_map_; 293 LayerIdMap layer_id_map_;
279 294
280 using ElementLayersMap = std::unordered_map<ElementId, Layer*, ElementIdHash>; 295 using ElementLayersMap = std::unordered_map<ElementId, Layer*, ElementIdHash>;
281 ElementLayersMap element_layers_map_; 296 ElementLayersMap element_layers_map_;
282 297
283 bool in_paint_layer_contents_; 298 bool in_paint_layer_contents_;
284 299
285 std::unique_ptr<AnimationHost> animation_host_; 300 std::unique_ptr<AnimationHost> animation_host_;
286 LayerTreeHost* layer_tree_host_; 301 LayerTreeHost* layer_tree_host_;
287 302
303 // TODO(khushalsagar): Make these go away once we transition blimp to an
304 // external embedder.
305 EnginePictureCache* engine_picture_cache_;
306 ClientPictureCache* client_picture_cache_;
307
288 DISALLOW_COPY_AND_ASSIGN(LayerTree); 308 DISALLOW_COPY_AND_ASSIGN(LayerTree);
289 }; 309 };
290 310
291 } // namespace cc 311 } // namespace cc
292 312
293 #endif // CC_TREES_LAYER_TREE_H_ 313 #endif // CC_TREES_LAYER_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/channel_main.h ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698