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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 virtual void DidLoseOutputSurfaceOnImplThread() = 0; | 65 virtual void DidLoseOutputSurfaceOnImplThread() = 0; |
66 virtual void CommitVSyncParameters(base::TimeTicks timebase, | 66 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
67 base::TimeDelta interval) = 0; | 67 base::TimeDelta interval) = 0; |
68 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; | 68 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; |
69 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; | 69 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; |
70 virtual void DidSwapBuffersOnImplThread() = 0; | 70 virtual void DidSwapBuffersOnImplThread() = 0; |
71 virtual void DidSwapBuffersCompleteOnImplThread() = 0; | 71 virtual void DidSwapBuffersCompleteOnImplThread() = 0; |
72 virtual void BeginFrame(const BeginFrameArgs& args) = 0; | 72 virtual void BeginFrame(const BeginFrameArgs& args) = 0; |
73 virtual void OnCanDrawStateChanged(bool can_draw) = 0; | 73 virtual void OnCanDrawStateChanged(bool can_draw) = 0; |
74 virtual void NotifyReadyToActivate() = 0; | 74 virtual void NotifyReadyToActivate() = 0; |
75 // Please call these 3 functions through | 75 // Please call these 2 functions through |
76 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 76 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). |
77 // SetNeedsAnimate(). | |
78 virtual void SetNeedsRedrawOnImplThread() = 0; | 77 virtual void SetNeedsRedrawOnImplThread() = 0; |
79 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; | 78 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; |
80 virtual void SetNeedsAnimateOnImplThread() = 0; | |
81 virtual void DidInitializeVisibleTileOnImplThread() = 0; | 79 virtual void DidInitializeVisibleTileOnImplThread() = 0; |
82 virtual void SetNeedsCommitOnImplThread() = 0; | 80 virtual void SetNeedsCommitOnImplThread() = 0; |
83 virtual void SetNeedsManageTilesOnImplThread() = 0; | 81 virtual void SetNeedsManageTilesOnImplThread() = 0; |
84 virtual void PostAnimationEventsToMainThreadOnImplThread( | 82 virtual void PostAnimationEventsToMainThreadOnImplThread( |
85 scoped_ptr<AnimationEventsVector> events) = 0; | 83 scoped_ptr<AnimationEventsVector> events) = 0; |
86 // Returns true if resources were deleted by this call. | 84 // Returns true if resources were deleted by this call. |
87 virtual bool ReduceContentsTextureMemoryOnImplThread( | 85 virtual bool ReduceContentsTextureMemoryOnImplThread( |
88 size_t limit_bytes, | 86 size_t limit_bytes, |
89 int priority_cutoff) = 0; | 87 int priority_cutoff) = 0; |
90 virtual void SendManagedMemoryStats() = 0; | 88 virtual void SendManagedMemoryStats() = 0; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; | 131 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; |
134 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE; | 132 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE; |
135 virtual void PinchGestureBegin() OVERRIDE; | 133 virtual void PinchGestureBegin() OVERRIDE; |
136 virtual void PinchGestureUpdate(float magnify_delta, | 134 virtual void PinchGestureUpdate(float magnify_delta, |
137 const gfx::Point& anchor) OVERRIDE; | 135 const gfx::Point& anchor) OVERRIDE; |
138 virtual void PinchGestureEnd() OVERRIDE; | 136 virtual void PinchGestureEnd() OVERRIDE; |
139 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 137 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
140 bool anchor_point, | 138 bool anchor_point, |
141 float page_scale, | 139 float page_scale, |
142 base::TimeDelta duration) OVERRIDE; | 140 base::TimeDelta duration) OVERRIDE; |
143 virtual void SetNeedsAnimate() OVERRIDE; | 141 virtual void ScheduleAnimation() OVERRIDE; |
144 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) | 142 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) |
145 OVERRIDE; | 143 OVERRIDE; |
146 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 144 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
147 ui::LatencyInfo* latency) OVERRIDE; | 145 ui::LatencyInfo* latency) OVERRIDE; |
148 | 146 |
149 // TopControlsManagerClient implementation. | 147 // TopControlsManagerClient implementation. |
150 virtual void DidChangeTopControlsPosition() OVERRIDE; | 148 virtual void DidChangeTopControlsPosition() OVERRIDE; |
151 virtual bool HaveRootScrollLayer() const OVERRIDE; | 149 virtual bool HaveRootScrollLayer() const OVERRIDE; |
152 | 150 |
153 void StartScrollbarAnimation(); | 151 void StartScrollbarAnimation(); |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 int id_; | 656 int id_; |
659 | 657 |
660 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 658 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
661 | 659 |
662 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
663 }; | 661 }; |
664 | 662 |
665 } // namespace cc | 663 } // namespace cc |
666 | 664 |
667 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 665 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |