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