| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 bool CommitRequested() const; | 194 bool CommitRequested() const; |
| 195 | 195 |
| 196 void SetNextCommitWaitsForActivation(); | 196 void SetNextCommitWaitsForActivation(); |
| 197 | 197 |
| 198 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 198 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
| 199 base::Time wall_clock_time); | 199 base::Time wall_clock_time); |
| 200 | 200 |
| 201 void SetRootLayer(scoped_refptr<Layer> root_layer); | 201 void SetRootLayer(scoped_refptr<Layer> root_layer); |
| 202 Layer* root_layer() { return root_layer_.get(); } | 202 Layer* root_layer() { return root_layer_.get(); } |
| 203 const Layer* root_layer() const { return root_layer_.get(); } | 203 const Layer* root_layer() const { return root_layer_.get(); } |
| 204 void RegisterPinchViewportLayers( |
| 205 scoped_refptr<Layer> inner_viewport_clip_layer, |
| 206 scoped_refptr<Layer> page_scale_layer, |
| 207 scoped_refptr<Layer> inner_viewport_scroll_layer, |
| 208 scoped_refptr<Layer> outer_viewport_scroll_layer); |
| 204 | 209 |
| 205 const LayerTreeSettings& settings() const { return settings_; } | 210 const LayerTreeSettings& settings() const { return settings_; } |
| 206 | 211 |
| 207 void SetDebugState(const LayerTreeDebugState& debug_state); | 212 void SetDebugState(const LayerTreeDebugState& debug_state); |
| 208 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 213 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
| 209 | 214 |
| 210 void SetViewportSize(gfx::Size device_viewport_size); | 215 void SetViewportSize(gfx::Size device_viewport_size); |
| 211 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 216 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 212 | 217 |
| 213 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 218 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 total_num_cc_layers_can_use_lcd_text(0), | 416 total_num_cc_layers_can_use_lcd_text(0), |
| 412 total_num_cc_layers_will_use_lcd_text(0) {} | 417 total_num_cc_layers_will_use_lcd_text(0) {} |
| 413 | 418 |
| 414 int64 total_num_cc_layers; | 419 int64 total_num_cc_layers; |
| 415 int64 total_num_cc_layers_can_use_lcd_text; | 420 int64 total_num_cc_layers_can_use_lcd_text; |
| 416 int64 total_num_cc_layers_will_use_lcd_text; | 421 int64 total_num_cc_layers_will_use_lcd_text; |
| 417 }; | 422 }; |
| 418 LCDTextMetrics lcd_text_metrics_; | 423 LCDTextMetrics lcd_text_metrics_; |
| 419 int tree_id_; | 424 int tree_id_; |
| 420 | 425 |
| 426 scoped_refptr<Layer> inner_viewport_clip_layer_; |
| 427 scoped_refptr<Layer> page_scale_layer_; |
| 428 scoped_refptr<Layer> inner_viewport_scroll_layer_; |
| 429 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
| 430 |
| 421 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 431 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 422 }; | 432 }; |
| 423 | 433 |
| 424 } // namespace cc | 434 } // namespace cc |
| 425 | 435 |
| 426 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 436 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |