| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } | 269 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } |
| 270 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } | 270 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } |
| 271 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } | 271 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } |
| 272 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } | 272 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } |
| 273 virtual void CreatePendingTree(); | 273 virtual void CreatePendingTree(); |
| 274 virtual void UpdateVisibleTiles(); | 274 virtual void UpdateVisibleTiles(); |
| 275 virtual void ActivatePendingTree(); | 275 virtual void ActivatePendingTree(); |
| 276 | 276 |
| 277 // Shortcuts to layers on the active tree. | 277 // Shortcuts to layers on the active tree. |
| 278 LayerImpl* RootLayer() const; | 278 LayerImpl* RootLayer() const; |
| 279 LayerImpl* RootScrollLayer() const; | 279 LayerImpl* InnerViewportScrollLayer() const; |
| 280 LayerImpl* OuterViewportScrollLayer() const; |
| 280 LayerImpl* CurrentlyScrollingLayer() const; | 281 LayerImpl* CurrentlyScrollingLayer() const; |
| 281 | 282 |
| 282 int scroll_layer_id_when_mouse_over_scrollbar() { | 283 int scroll_layer_id_when_mouse_over_scrollbar() { |
| 283 return scroll_layer_id_when_mouse_over_scrollbar_; | 284 return scroll_layer_id_when_mouse_over_scrollbar_; |
| 284 } | 285 } |
| 285 | 286 |
| 286 bool IsCurrentlyScrolling() const; | 287 bool IsCurrentlyScrolling() const; |
| 287 | 288 |
| 288 virtual void SetVisible(bool visible); | 289 virtual void SetVisible(bool visible); |
| 289 bool visible() const { return visible_; } | 290 bool visible() const { return visible_; } |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 void AnimatePageScale(base::TimeTicks monotonic_time); | 447 void AnimatePageScale(base::TimeTicks monotonic_time); |
| 447 void AnimateScrollbars(base::TimeTicks monotonic_time); | 448 void AnimateScrollbars(base::TimeTicks monotonic_time); |
| 448 void AnimateTopControls(base::TimeTicks monotonic_time); | 449 void AnimateTopControls(base::TimeTicks monotonic_time); |
| 449 | 450 |
| 450 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 451 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
| 451 LayerImpl* layer_impl, | 452 LayerImpl* layer_impl, |
| 452 float scale_from_viewport_to_screen_space, | 453 float scale_from_viewport_to_screen_space, |
| 453 gfx::PointF viewport_point, | 454 gfx::PointF viewport_point, |
| 454 gfx::Vector2dF viewport_delta); | 455 gfx::Vector2dF viewport_delta); |
| 455 | 456 |
| 456 void UpdateMaxScrollOffset(); | |
| 457 void TrackDamageForAllSurfaces( | 457 void TrackDamageForAllSurfaces( |
| 458 LayerImpl* root_draw_layer, | 458 LayerImpl* root_draw_layer, |
| 459 const LayerImplList& render_surface_layer_list); | 459 const LayerImplList& render_surface_layer_list); |
| 460 | 460 |
| 461 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); | 461 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 462 | 462 |
| 463 // Returns false if the frame should not be displayed. This function should | 463 // Returns false if the frame should not be displayed. This function should |
| 464 // only be called from PrepareToDraw, as DidDrawAllLayers must be called | 464 // only be called from PrepareToDraw, as DidDrawAllLayers must be called |
| 465 // if this helper function is called. | 465 // if this helper function is called. |
| 466 bool CalculateRenderPasses(FrameData* frame); | 466 bool CalculateRenderPasses(FrameData* frame); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 base::Closure tree_activation_callback_; | 623 base::Closure tree_activation_callback_; |
| 624 | 624 |
| 625 SharedBitmapManager* shared_bitmap_manager_; | 625 SharedBitmapManager* shared_bitmap_manager_; |
| 626 | 626 |
| 627 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 627 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 628 }; | 628 }; |
| 629 | 629 |
| 630 } // namespace cc | 630 } // namespace cc |
| 631 | 631 |
| 632 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 632 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |