| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 void SetImplTransform(const gfx::Transform& transform); | 266 void SetImplTransform(const gfx::Transform& transform); |
| 267 void SetLatencyInfo(const ui::LatencyInfo& latency_info); | 267 void SetLatencyInfo(const ui::LatencyInfo& latency_info); |
| 268 | 268 |
| 269 virtual void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); | 269 virtual void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); |
| 270 virtual void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); | 270 virtual void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); |
| 271 | 271 |
| 272 // RateLimiterClient implementation. | 272 // RateLimiterClient implementation. |
| 273 virtual void RateLimit() OVERRIDE; | 273 virtual void RateLimit() OVERRIDE; |
| 274 | 274 |
| 275 bool buffered_updates() const { | 275 bool AlwaysUsePartialTextureUpdates(); |
| 276 return settings_.max_partial_texture_updates != | |
| 277 std::numeric_limits<size_t>::max(); | |
| 278 } | |
| 279 bool RequestPartialTextureUpdate(); | 276 bool RequestPartialTextureUpdate(); |
| 280 | 277 |
| 281 void SetDeviceScaleFactor(float device_scale_factor); | 278 void SetDeviceScaleFactor(float device_scale_factor); |
| 282 float device_scale_factor() const { return device_scale_factor_; } | 279 float device_scale_factor() const { return device_scale_factor_; } |
| 283 | 280 |
| 284 void UpdateTopControlsState(TopControlsState constraints, | 281 void UpdateTopControlsState(TopControlsState constraints, |
| 285 TopControlsState current, | 282 TopControlsState current, |
| 286 bool animate); | 283 bool animate); |
| 287 | 284 |
| 288 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 285 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 scoped_refptr<Layer> page_scale_layer_; | 448 scoped_refptr<Layer> page_scale_layer_; |
| 452 scoped_refptr<Layer> inner_viewport_scroll_layer_; | 449 scoped_refptr<Layer> inner_viewport_scroll_layer_; |
| 453 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 450 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
| 454 | 451 |
| 455 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 452 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 456 }; | 453 }; |
| 457 | 454 |
| 458 } // namespace cc | 455 } // namespace cc |
| 459 | 456 |
| 460 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 457 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |