Chromium Code Reviews| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 void SetThrottleFrameProduction(bool throttle); | 236 void SetThrottleFrameProduction(bool throttle); |
| 237 | 237 |
| 238 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 238 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 239 bool use_anchor, | 239 bool use_anchor, |
| 240 float scale, | 240 float scale, |
| 241 base::TimeDelta duration); | 241 base::TimeDelta duration); |
| 242 | 242 |
| 243 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 243 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 244 void SetImplTransform(const gfx::Transform& transform); | 244 void SetImplTransform(const gfx::Transform& transform); |
| 245 | 245 |
| 246 // Virtual for tests. | |
| 247 virtual void StartRateLimiter(); | |
| 248 virtual void StopRateLimiter(); | |
| 249 | |
| 250 void RateLimit(); | |
| 251 | |
| 252 void SetDeviceScaleFactor(float device_scale_factor); | 246 void SetDeviceScaleFactor(float device_scale_factor); |
| 253 float device_scale_factor() const { return device_scale_factor_; } | 247 float device_scale_factor() const { return device_scale_factor_; } |
| 254 | 248 |
| 255 void UpdateTopControlsState(TopControlsState constraints, | 249 void UpdateTopControlsState(TopControlsState constraints, |
| 256 TopControlsState current, | 250 TopControlsState current, |
| 257 bool animate); | 251 bool animate); |
| 258 | 252 |
| 259 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 253 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| 260 | 254 |
| 261 Proxy* proxy() const { return proxy_.get(); } | 255 Proxy* proxy() const { return proxy_.get(); } |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 447 | 441 |
| 448 gfx::Size device_viewport_size_; | 442 gfx::Size device_viewport_size_; |
| 449 bool top_controls_shrink_blink_size_; | 443 bool top_controls_shrink_blink_size_; |
| 450 float top_controls_height_; | 444 float top_controls_height_; |
| 451 float top_controls_shown_ratio_; | 445 float top_controls_shown_ratio_; |
| 452 bool hide_pinch_scrollbars_near_min_scale_; | 446 bool hide_pinch_scrollbars_near_min_scale_; |
| 453 float device_scale_factor_; | 447 float device_scale_factor_; |
| 454 | 448 |
| 455 bool visible_; | 449 bool visible_; |
| 456 | 450 |
| 457 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; | 451 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; |
|
danakj
2015/09/21 19:48:33
can go too?
| |
| 458 | 452 |
| 459 float page_scale_factor_; | 453 float page_scale_factor_; |
| 460 float min_page_scale_factor_; | 454 float min_page_scale_factor_; |
| 461 float max_page_scale_factor_; | 455 float max_page_scale_factor_; |
| 462 gfx::Vector2dF elastic_overscroll_; | 456 gfx::Vector2dF elastic_overscroll_; |
| 463 bool has_gpu_rasterization_trigger_; | 457 bool has_gpu_rasterization_trigger_; |
| 464 bool content_is_suitable_for_gpu_rasterization_; | 458 bool content_is_suitable_for_gpu_rasterization_; |
| 465 bool gpu_rasterization_histogram_recorded_; | 459 bool gpu_rasterization_histogram_recorded_; |
| 466 | 460 |
| 467 SkColor background_color_; | 461 SkColor background_color_; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 502 | 496 |
| 503 uint32_t surface_id_namespace_; | 497 uint32_t surface_id_namespace_; |
| 504 uint32_t next_surface_sequence_; | 498 uint32_t next_surface_sequence_; |
| 505 | 499 |
| 506 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 500 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 507 }; | 501 }; |
| 508 | 502 |
| 509 } // namespace cc | 503 } // namespace cc |
| 510 | 504 |
| 511 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 505 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |