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

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

Issue 2609243003: [NOT FOR REVIEW]
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree.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 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); 128 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space);
129 const gfx::ColorSpace& device_color_space() const { 129 const gfx::ColorSpace& device_color_space() const {
130 return inputs_.device_color_space; 130 return inputs_.device_color_space;
131 } 131 }
132 132
133 // Used externally by blink for setting the PropertyTrees when 133 // Used externally by blink for setting the PropertyTrees when
134 // |settings_.use_layer_lists| is true. This is a SPV2 setting. 134 // |settings_.use_layer_lists| is true. This is a SPV2 setting.
135 PropertyTrees* property_trees() { return &property_trees_; } 135 PropertyTrees* property_trees() { return &property_trees_; }
136 136
137 PropertyTrees* test_property_trees_with_new_clip_tree() {
138 if (!test_property_trees_with_new_clip_tree_)
139 test_property_trees_with_new_clip_tree_ = new PropertyTrees();
140 return test_property_trees_with_new_clip_tree_;
141 }
142
137 void SetNeedsDisplayOnAllLayers(); 143 void SetNeedsDisplayOnAllLayers();
138 144
139 void SetNeedsCommit(); 145 void SetNeedsCommit();
140 146
141 const LayerTreeSettings& GetSettings() const; 147 const LayerTreeSettings& GetSettings() const;
142 148
143 // Methods which should only be used internally in cc ------------------ 149 // Methods which should only be used internally in cc ------------------
144 void RegisterLayer(Layer* layer); 150 void RegisterLayer(Layer* layer);
145 void UnregisterLayer(Layer* layer); 151 void UnregisterLayer(Layer* layer);
146 Layer* LayerById(int id) const; 152 Layer* LayerById(int id) const;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 EventListenerProperties event_listener_properties[static_cast<size_t>( 281 EventListenerProperties event_listener_properties[static_cast<size_t>(
276 EventListenerClass::kNumClasses)]; 282 EventListenerClass::kNumClasses)];
277 283
278 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation; 284 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation;
279 }; 285 };
280 286
281 Inputs inputs_; 287 Inputs inputs_;
282 288
283 PropertyTrees property_trees_; 289 PropertyTrees property_trees_;
284 290
291 PropertyTrees* test_property_trees_with_new_clip_tree_;
292
285 bool needs_full_tree_sync_; 293 bool needs_full_tree_sync_;
286 bool needs_meta_info_recomputation_; 294 bool needs_meta_info_recomputation_;
287 295
288 gfx::Vector2dF elastic_overscroll_; 296 gfx::Vector2dF elastic_overscroll_;
289 297
290 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; 298 scoped_refptr<HeadsUpDisplayLayer> hud_layer_;
291 299
292 // Set of layers that need to push properties. 300 // Set of layers that need to push properties.
293 LayerSet layers_that_should_push_properties_; 301 LayerSet layers_that_should_push_properties_;
294 302
(...skipping 12 matching lines...) Expand all
307 // external embedder. 315 // external embedder.
308 EnginePictureCache* engine_picture_cache_; 316 EnginePictureCache* engine_picture_cache_;
309 ClientPictureCache* client_picture_cache_; 317 ClientPictureCache* client_picture_cache_;
310 318
311 DISALLOW_COPY_AND_ASSIGN(LayerTree); 319 DISALLOW_COPY_AND_ASSIGN(LayerTree);
312 }; 320 };
313 321
314 } // namespace cc 322 } // namespace cc
315 323
316 #endif // CC_TREES_LAYER_TREE_H_ 324 #endif // CC_TREES_LAYER_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698