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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 SyncedTopControls* top_controls_shown_ratio() { | 193 SyncedTopControls* top_controls_shown_ratio() { |
194 return top_controls_shown_ratio_.get(); | 194 return top_controls_shown_ratio_.get(); |
195 } | 195 } |
196 const SyncedTopControls* top_controls_shown_ratio() const { | 196 const SyncedTopControls* top_controls_shown_ratio() const { |
197 return top_controls_shown_ratio_.get(); | 197 return top_controls_shown_ratio_.get(); |
198 } | 198 } |
199 | 199 |
200 // Updates draw properties and render surface layer list, as well as tile | 200 // Updates draw properties and render surface layer list, as well as tile |
201 // priorities. Returns false if it was unable to update. Updating lcd | 201 // priorities. Returns false if it was unable to update. Updating lcd |
202 // text may cause invalidations, so should only be done after a commit. | 202 // text may cause invalidations, so should only be done after a commit. |
203 bool UpdateDrawProperties(bool update_lcd_text); | 203 bool UpdateDrawProperties(bool first_update_after_commit); |
204 | 204 |
205 void set_needs_update_draw_properties() { | 205 void set_needs_update_draw_properties() { |
206 needs_update_draw_properties_ = true; | 206 needs_update_draw_properties_ = true; |
207 } | 207 } |
208 bool needs_update_draw_properties() const { | 208 bool needs_update_draw_properties() const { |
209 return needs_update_draw_properties_; | 209 return needs_update_draw_properties_; |
210 } | 210 } |
211 | 211 |
212 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } | 212 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } |
213 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 213 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 416 |
417 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 417 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
418 | 418 |
419 private: | 419 private: |
420 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 420 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
421 }; | 421 }; |
422 | 422 |
423 } // namespace cc | 423 } // namespace cc |
424 | 424 |
425 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 425 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |