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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 AlwaysUsePartialTextureUpdates(); | 275 bool AlwaysUsePartialTextureUpdates(); |
| 276 size_t MaxPartialTextureUpdates() const; |
276 bool RequestPartialTextureUpdate(); | 277 bool RequestPartialTextureUpdate(); |
277 | 278 |
278 void SetDeviceScaleFactor(float device_scale_factor); | 279 void SetDeviceScaleFactor(float device_scale_factor); |
279 float device_scale_factor() const { return device_scale_factor_; } | 280 float device_scale_factor() const { return device_scale_factor_; } |
280 | 281 |
281 void UpdateTopControlsState(TopControlsState constraints, | 282 void UpdateTopControlsState(TopControlsState constraints, |
282 TopControlsState current, | 283 TopControlsState current, |
283 bool animate); | 284 bool animate); |
284 | 285 |
285 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 286 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 380 |
380 scoped_refptr<Layer> root_layer_; | 381 scoped_refptr<Layer> root_layer_; |
381 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; | 382 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; |
382 | 383 |
383 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; | 384 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; |
384 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; | 385 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; |
385 | 386 |
386 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 387 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
387 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 388 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
388 | 389 |
389 LayerTreeSettings settings_; | 390 const LayerTreeSettings settings_; |
390 LayerTreeDebugState debug_state_; | 391 LayerTreeDebugState debug_state_; |
391 | 392 |
392 gfx::Size device_viewport_size_; | 393 gfx::Size device_viewport_size_; |
393 float overdraw_bottom_height_; | 394 float overdraw_bottom_height_; |
394 float device_scale_factor_; | 395 float device_scale_factor_; |
395 | 396 |
396 bool visible_; | 397 bool visible_; |
397 | 398 |
398 typedef base::hash_map<WebKit::WebGraphicsContext3D*, | 399 typedef base::hash_map<WebKit::WebGraphicsContext3D*, |
399 scoped_refptr<RateLimiter> > RateLimiterMap; | 400 scoped_refptr<RateLimiter> > RateLimiterMap; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 scoped_refptr<Layer> page_scale_layer_; | 449 scoped_refptr<Layer> page_scale_layer_; |
449 scoped_refptr<Layer> inner_viewport_scroll_layer_; | 450 scoped_refptr<Layer> inner_viewport_scroll_layer_; |
450 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 451 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
451 | 452 |
452 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 453 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
453 }; | 454 }; |
454 | 455 |
455 } // namespace cc | 456 } // namespace cc |
456 | 457 |
457 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 458 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |