| 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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 | 667 |
| 668 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); | 668 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 669 | 669 |
| 670 // This function should only be called from PrepareToDraw, as DidDrawAllLayers | 670 // This function should only be called from PrepareToDraw, as DidDrawAllLayers |
| 671 // must be called if this helper function is called. Returns DRAW_SUCCESS if | 671 // must be called if this helper function is called. Returns DRAW_SUCCESS if |
| 672 // the frame should be drawn. | 672 // the frame should be drawn. |
| 673 DrawResult CalculateRenderPasses(FrameData* frame); | 673 DrawResult CalculateRenderPasses(FrameData* frame); |
| 674 | 674 |
| 675 void ClearCurrentlyScrollingNode(); | 675 void ClearCurrentlyScrollingNode(); |
| 676 | 676 |
| 677 LayerImpl* FindScrollLayerForDeviceViewportPoint( | 677 ScrollNode* FindScrollNodeForDeviceViewportPoint( |
| 678 const gfx::PointF& device_viewport_point, | 678 const gfx::PointF& device_viewport_point, |
| 679 InputHandler::ScrollInputType type, | 679 InputHandler::ScrollInputType type, |
| 680 LayerImpl* layer_hit_by_point, | 680 LayerImpl* layer_hit_by_point, |
| 681 bool* scroll_on_main_thread, | 681 bool* scroll_on_main_thread, |
| 682 uint32_t* main_thread_scrolling_reason) const; | 682 uint32_t* main_thread_scrolling_reason) const; |
| 683 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point, | 683 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point, |
| 684 LayerImpl* layer_impl); | 684 LayerImpl* layer_impl); |
| 685 void StartScrollbarFadeRecursive(LayerImpl* layer); | 685 void StartScrollbarFadeRecursive(LayerImpl* layer); |
| 686 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy); | 686 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 687 | 687 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 bool has_scrolled_by_touch_; | 870 bool has_scrolled_by_touch_; |
| 871 | 871 |
| 872 bool touchpad_and_wheel_scroll_latching_enabled_; | 872 bool touchpad_and_wheel_scroll_latching_enabled_; |
| 873 | 873 |
| 874 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 874 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 875 }; | 875 }; |
| 876 | 876 |
| 877 } // namespace cc | 877 } // namespace cc |
| 878 | 878 |
| 879 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 879 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |