Chromium Code Reviews| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 } | 216 } |
| 217 const SyncedTopControls* top_controls_shown_ratio() const { | 217 const SyncedTopControls* top_controls_shown_ratio() const { |
| 218 return top_controls_shown_ratio_.get(); | 218 return top_controls_shown_ratio_.get(); |
| 219 } | 219 } |
| 220 | 220 |
| 221 // Updates draw properties and render surface layer list, as well as tile | 221 // Updates draw properties and render surface layer list, as well as tile |
| 222 // priorities. Returns false if it was unable to update. Updating lcd | 222 // priorities. Returns false if it was unable to update. Updating lcd |
| 223 // text may cause invalidations, so should only be done after a commit. | 223 // text may cause invalidations, so should only be done after a commit. |
| 224 bool UpdateDrawProperties(bool update_lcd_text); | 224 bool UpdateDrawProperties(bool update_lcd_text); |
| 225 void BuildPropertyTreesForTesting(); | 225 void BuildPropertyTreesForTesting(); |
| 226 void IncrementRenderSurfaceListIdForTesting(); | |
|
ajuma
2015/11/30 17:55:52
In several unit tests, the render surface list id
| |
| 226 | 227 |
| 227 void set_needs_update_draw_properties() { | 228 void set_needs_update_draw_properties() { |
| 228 needs_update_draw_properties_ = true; | 229 needs_update_draw_properties_ = true; |
| 229 } | 230 } |
| 230 bool needs_update_draw_properties() const { | 231 bool needs_update_draw_properties() const { |
| 231 return needs_update_draw_properties_; | 232 return needs_update_draw_properties_; |
| 232 } | 233 } |
| 233 | 234 |
| 234 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } | 235 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } |
| 235 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 236 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 | 501 |
| 501 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 502 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 502 | 503 |
| 503 private: | 504 private: |
| 504 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 505 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 505 }; | 506 }; |
| 506 | 507 |
| 507 } // namespace cc | 508 } // namespace cc |
| 508 | 509 |
| 509 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 510 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |