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