OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <list> | 9 #include <list> |
10 #include <vector> | 10 #include <vector> |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void SetNeedsAnimate(); | 188 void SetNeedsAnimate(); |
189 virtual void SetNeedsUpdateLayers(); | 189 virtual void SetNeedsUpdateLayers(); |
190 virtual void SetNeedsCommit(); | 190 virtual void SetNeedsCommit(); |
191 virtual void SetNeedsFullTreeSync(); | 191 virtual void SetNeedsFullTreeSync(); |
192 void SetNeedsRedraw(); | 192 void SetNeedsRedraw(); |
193 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 193 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
194 bool CommitRequested() const; | 194 bool CommitRequested() const; |
195 | 195 |
196 void SetNextCommitWaitsForActivation(); | 196 void SetNextCommitWaitsForActivation(); |
197 | 197 |
| 198 void SetNextCommitForcesRedraw(); |
| 199 |
198 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 200 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
199 base::Time wall_clock_time); | 201 base::Time wall_clock_time); |
200 | 202 |
201 void SetRootLayer(scoped_refptr<Layer> root_layer); | 203 void SetRootLayer(scoped_refptr<Layer> root_layer); |
202 Layer* root_layer() { return root_layer_.get(); } | 204 Layer* root_layer() { return root_layer_.get(); } |
203 const Layer* root_layer() const { return root_layer_.get(); } | 205 const Layer* root_layer() const { return root_layer_.get(); } |
204 void RegisterViewportLayers( | 206 void RegisterViewportLayers( |
205 scoped_refptr<Layer> page_scale_layer, | 207 scoped_refptr<Layer> page_scale_layer, |
206 scoped_refptr<Layer> inner_viewport_scroll_layer, | 208 scoped_refptr<Layer> inner_viewport_scroll_layer, |
207 scoped_refptr<Layer> outer_viewport_scroll_layer); | 209 scoped_refptr<Layer> outer_viewport_scroll_layer); |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 : total_num_cc_layers(0), | 417 : total_num_cc_layers(0), |
416 total_num_cc_layers_can_use_lcd_text(0), | 418 total_num_cc_layers_can_use_lcd_text(0), |
417 total_num_cc_layers_will_use_lcd_text(0) {} | 419 total_num_cc_layers_will_use_lcd_text(0) {} |
418 | 420 |
419 int64 total_num_cc_layers; | 421 int64 total_num_cc_layers; |
420 int64 total_num_cc_layers_can_use_lcd_text; | 422 int64 total_num_cc_layers_can_use_lcd_text; |
421 int64 total_num_cc_layers_will_use_lcd_text; | 423 int64 total_num_cc_layers_will_use_lcd_text; |
422 }; | 424 }; |
423 LCDTextMetrics lcd_text_metrics_; | 425 LCDTextMetrics lcd_text_metrics_; |
424 int tree_id_; | 426 int tree_id_; |
| 427 bool next_commit_forces_redraw_; |
425 | 428 |
426 scoped_refptr<Layer> page_scale_layer_; | 429 scoped_refptr<Layer> page_scale_layer_; |
427 scoped_refptr<Layer> inner_viewport_scroll_layer_; | 430 scoped_refptr<Layer> inner_viewport_scroll_layer_; |
428 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 431 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
429 | 432 |
430 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 433 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
431 }; | 434 }; |
432 | 435 |
433 } // namespace cc | 436 } // namespace cc |
434 | 437 |
435 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 438 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |