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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <bitset> | 10 #include <bitset> |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 bool AnimateTopControls(base::TimeTicks monotonic_time); | 659 bool AnimateTopControls(base::TimeTicks monotonic_time); |
660 | 660 |
661 void TrackDamageForAllSurfaces( | 661 void TrackDamageForAllSurfaces( |
662 const LayerImplList& render_surface_layer_list); | 662 const LayerImplList& render_surface_layer_list); |
663 | 663 |
664 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); | 664 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); |
665 | 665 |
666 // This function should only be called from PrepareToDraw, as DidDrawAllLayers | 666 // This function should only be called from PrepareToDraw, as DidDrawAllLayers |
667 // must be called if this helper function is called. Returns DRAW_SUCCESS if | 667 // must be called if this helper function is called. Returns DRAW_SUCCESS if |
668 // the frame should be drawn. | 668 // the frame should be drawn. |
669 DrawResult CalculateRenderPasses(FrameData* frame); | 669 DrawResult CalculateRenderPasses(FrameData* frame, |
| 670 bool handle_visibility_changed); |
670 | 671 |
671 void ClearCurrentlyScrollingLayer(); | 672 void ClearCurrentlyScrollingLayer(); |
672 | 673 |
673 void HandleMouseOverScrollbar(LayerImpl* layer_impl); | 674 void HandleMouseOverScrollbar(LayerImpl* layer_impl); |
674 | 675 |
675 LayerImpl* FindScrollLayerForDeviceViewportPoint( | 676 LayerImpl* FindScrollLayerForDeviceViewportPoint( |
676 const gfx::PointF& device_viewport_point, | 677 const gfx::PointF& device_viewport_point, |
677 InputHandler::ScrollInputType type, | 678 InputHandler::ScrollInputType type, |
678 LayerImpl* layer_hit_by_point, | 679 LayerImpl* layer_hit_by_point, |
679 bool* scroll_on_main_thread, | 680 bool* scroll_on_main_thread, |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 | 841 |
841 std::unique_ptr<PendingTreeDurationHistogramTimer> | 842 std::unique_ptr<PendingTreeDurationHistogramTimer> |
842 pending_tree_duration_timer_; | 843 pending_tree_duration_timer_; |
843 | 844 |
844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 845 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
845 }; | 846 }; |
846 | 847 |
847 } // namespace cc | 848 } // namespace cc |
848 | 849 |
849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 850 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |