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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 } | 243 } |
244 const SyncedTopControls* top_controls_shown_ratio() const { | 244 const SyncedTopControls* top_controls_shown_ratio() const { |
245 return top_controls_shown_ratio_.get(); | 245 return top_controls_shown_ratio_.get(); |
246 } | 246 } |
247 | 247 |
248 void SetElementIdsForTesting(); | 248 void SetElementIdsForTesting(); |
249 | 249 |
250 // Updates draw properties and render surface layer list, as well as tile | 250 // Updates draw properties and render surface layer list, as well as tile |
251 // priorities. Returns false if it was unable to update. Updating lcd | 251 // priorities. Returns false if it was unable to update. Updating lcd |
252 // text may cause invalidations, so should only be done after a commit. | 252 // text may cause invalidations, so should only be done after a commit. |
253 bool UpdateDrawProperties(bool update_lcd_text); | 253 bool UpdateDrawProperties( |
| 254 bool update_lcd_text, |
| 255 bool force_skip_verify_visible_rect_calculations = false); |
254 void BuildPropertyTreesForTesting(); | 256 void BuildPropertyTreesForTesting(); |
255 void BuildLayerListAndPropertyTreesForTesting(); | 257 void BuildLayerListAndPropertyTreesForTesting(); |
256 | 258 |
257 void set_needs_update_draw_properties() { | 259 void set_needs_update_draw_properties() { |
258 needs_update_draw_properties_ = true; | 260 needs_update_draw_properties_ = true; |
259 } | 261 } |
260 bool needs_update_draw_properties() const { | 262 bool needs_update_draw_properties() const { |
261 return needs_update_draw_properties_; | 263 return needs_update_draw_properties_; |
262 } | 264 } |
263 | 265 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 | 554 |
553 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 555 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
554 | 556 |
555 private: | 557 private: |
556 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 558 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
557 }; | 559 }; |
558 | 560 |
559 } // namespace cc | 561 } // namespace cc |
560 | 562 |
561 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 563 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |