OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 } | 249 } |
250 const SyncedBrowserControls* top_controls_shown_ratio() const { | 250 const SyncedBrowserControls* top_controls_shown_ratio() const { |
251 return top_controls_shown_ratio_.get(); | 251 return top_controls_shown_ratio_.get(); |
252 } | 252 } |
253 | 253 |
254 void SetElementIdsForTesting(); | 254 void SetElementIdsForTesting(); |
255 | 255 |
256 // Updates draw properties and render surface layer list, as well as tile | 256 // Updates draw properties and render surface layer list, as well as tile |
257 // priorities. Returns false if it was unable to update. Updating lcd | 257 // priorities. Returns false if it was unable to update. Updating lcd |
258 // text may cause invalidations, so should only be done after a commit. | 258 // text may cause invalidations, so should only be done after a commit. |
259 bool UpdateDrawProperties( | 259 bool UpdateDrawProperties(bool update_lcd_text); |
260 bool update_lcd_text, | |
261 bool force_skip_verify_visible_rect_calculations = false); | |
262 void BuildPropertyTreesForTesting(); | 260 void BuildPropertyTreesForTesting(); |
263 void BuildLayerListAndPropertyTreesForTesting(); | 261 void BuildLayerListAndPropertyTreesForTesting(); |
264 | 262 |
265 void set_needs_update_draw_properties() { | 263 void set_needs_update_draw_properties() { |
266 needs_update_draw_properties_ = true; | 264 needs_update_draw_properties_ = true; |
267 } | 265 } |
268 bool needs_update_draw_properties() const { | 266 bool needs_update_draw_properties() const { |
269 return needs_update_draw_properties_; | 267 return needs_update_draw_properties_; |
270 } | 268 } |
271 | 269 |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 | 566 |
569 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 567 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
570 | 568 |
571 private: | 569 private: |
572 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 570 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
573 }; | 571 }; |
574 | 572 |
575 } // namespace cc | 573 } // namespace cc |
576 | 574 |
577 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 575 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |