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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 } | 254 } |
255 const SyncedBrowserControls* top_controls_shown_ratio() const { | 255 const SyncedBrowserControls* top_controls_shown_ratio() const { |
256 return top_controls_shown_ratio_.get(); | 256 return top_controls_shown_ratio_.get(); |
257 } | 257 } |
258 | 258 |
259 void SetElementIdsForTesting(); | 259 void SetElementIdsForTesting(); |
260 | 260 |
261 // Updates draw properties and render surface layer list, as well as tile | 261 // Updates draw properties and render surface layer list, as well as tile |
262 // priorities. Returns false if it was unable to update. Updating lcd | 262 // priorities. Returns false if it was unable to update. Updating lcd |
263 // text may cause invalidations, so should only be done after a commit. | 263 // text may cause invalidations, so should only be done after a commit. |
264 bool UpdateDrawProperties( | 264 bool UpdateDrawProperties(bool update_lcd_text); |
265 bool update_lcd_text, | |
266 bool force_skip_verify_visible_rect_calculations = false); | |
267 void BuildPropertyTreesForTesting(); | 265 void BuildPropertyTreesForTesting(); |
268 void BuildLayerListAndPropertyTreesForTesting(); | 266 void BuildLayerListAndPropertyTreesForTesting(); |
269 | 267 |
270 void set_needs_update_draw_properties() { | 268 void set_needs_update_draw_properties() { |
271 needs_update_draw_properties_ = true; | 269 needs_update_draw_properties_ = true; |
272 } | 270 } |
273 bool needs_update_draw_properties() const { | 271 bool needs_update_draw_properties() const { |
274 return needs_update_draw_properties_; | 272 return needs_update_draw_properties_; |
275 } | 273 } |
276 | 274 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 | 572 |
575 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 573 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
576 | 574 |
577 private: | 575 private: |
578 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 576 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
579 }; | 577 }; |
580 | 578 |
581 } // namespace cc | 579 } // namespace cc |
582 | 580 |
583 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 581 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |