| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 void ApplyScrollAndScale(ScrollAndScaleSet* info); | 239 void ApplyScrollAndScale(ScrollAndScaleSet* info); |
| 240 void SetImplTransform(const gfx::Transform& transform); | 240 void SetImplTransform(const gfx::Transform& transform); |
| 241 | 241 |
| 242 // Virtual for tests. | 242 // Virtual for tests. |
| 243 virtual void StartRateLimiter(); | 243 virtual void StartRateLimiter(); |
| 244 virtual void StopRateLimiter(); | 244 virtual void StopRateLimiter(); |
| 245 | 245 |
| 246 void RateLimit(); | 246 void RateLimit(); |
| 247 | 247 |
| 248 bool AlwaysUsePartialTextureUpdates(); | |
| 249 size_t MaxPartialTextureUpdates() const; | |
| 250 bool RequestPartialTextureUpdate(); | |
| 251 | |
| 252 void SetDeviceScaleFactor(float device_scale_factor); | 248 void SetDeviceScaleFactor(float device_scale_factor); |
| 253 float device_scale_factor() const { return device_scale_factor_; } | 249 float device_scale_factor() const { return device_scale_factor_; } |
| 254 | 250 |
| 255 void UpdateTopControlsState(TopControlsState constraints, | 251 void UpdateTopControlsState(TopControlsState constraints, |
| 256 TopControlsState current, | 252 TopControlsState current, |
| 257 bool animate); | 253 bool animate); |
| 258 | 254 |
| 259 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 255 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| 260 | 256 |
| 261 Proxy* proxy() const { return proxy_.get(); } | 257 Proxy* proxy() const { return proxy_.get(); } |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 float min_page_scale_factor_; | 413 float min_page_scale_factor_; |
| 418 float max_page_scale_factor_; | 414 float max_page_scale_factor_; |
| 419 gfx::Vector2dF elastic_overscroll_; | 415 gfx::Vector2dF elastic_overscroll_; |
| 420 bool has_gpu_rasterization_trigger_; | 416 bool has_gpu_rasterization_trigger_; |
| 421 bool content_is_suitable_for_gpu_rasterization_; | 417 bool content_is_suitable_for_gpu_rasterization_; |
| 422 bool gpu_rasterization_histogram_recorded_; | 418 bool gpu_rasterization_histogram_recorded_; |
| 423 | 419 |
| 424 SkColor background_color_; | 420 SkColor background_color_; |
| 425 bool has_transparent_background_; | 421 bool has_transparent_background_; |
| 426 | 422 |
| 427 typedef ScopedPtrVector<PrioritizedResource> TextureList; | |
| 428 size_t partial_texture_update_requests_; | |
| 429 | |
| 430 scoped_ptr<AnimationRegistrar> animation_registrar_; | 423 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 431 | 424 |
| 432 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 425 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 433 | 426 |
| 434 // If set, then page scale animation has completed, but the client hasn't been | 427 // If set, then page scale animation has completed, but the client hasn't been |
| 435 // notified about it yet. | 428 // notified about it yet. |
| 436 bool did_complete_scale_animation_; | 429 bool did_complete_scale_animation_; |
| 437 | 430 |
| 438 bool in_paint_layer_contents_; | 431 bool in_paint_layer_contents_; |
| 439 | 432 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 458 | 451 |
| 459 uint32_t surface_id_namespace_; | 452 uint32_t surface_id_namespace_; |
| 460 uint32_t next_surface_sequence_; | 453 uint32_t next_surface_sequence_; |
| 461 | 454 |
| 462 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 455 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 463 }; | 456 }; |
| 464 | 457 |
| 465 } // namespace cc | 458 } // namespace cc |
| 466 | 459 |
| 467 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 460 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |