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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // Please call these 2 functions through | 80 // Please call these 2 functions through |
81 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). | 81 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). |
82 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 82 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
83 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) | 83 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) |
84 OVERRIDE; | 84 OVERRIDE; |
85 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | 85 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; |
86 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 86 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
87 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 87 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
88 virtual void PostAnimationEventsToMainThreadOnImplThread( | 88 virtual void PostAnimationEventsToMainThreadOnImplThread( |
89 scoped_ptr<AnimationEventsVector> queue, | 89 scoped_ptr<AnimationEventsVector> queue, |
90 base::Time wall_clock_time) OVERRIDE; | 90 base::TimeTicks clock_time) OVERRIDE; |
91 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 91 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
92 int priority_cutoff) | 92 int priority_cutoff) |
93 OVERRIDE; | 93 OVERRIDE; |
94 virtual void SendManagedMemoryStats() OVERRIDE; | 94 virtual void SendManagedMemoryStats() OVERRIDE; |
95 virtual bool IsInsideDraw() OVERRIDE; | 95 virtual bool IsInsideDraw() OVERRIDE; |
96 virtual void RenewTreePriority() OVERRIDE; | 96 virtual void RenewTreePriority() OVERRIDE; |
97 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 97 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
98 OVERRIDE; | 98 OVERRIDE; |
99 virtual void DidActivatePendingTree() OVERRIDE; | 99 virtual void DidActivatePendingTree() OVERRIDE; |
100 virtual void DidManageTiles() OVERRIDE; | 100 virtual void DidManageTiles() OVERRIDE; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 int memory_allocation_priority_cutoff; | 137 int memory_allocation_priority_cutoff; |
138 bool evicted_ui_resources; | 138 bool evicted_ui_resources; |
139 }; | 139 }; |
140 | 140 |
141 // Called on main thread. | 141 // Called on main thread. |
142 void BeginMainFrame( | 142 void BeginMainFrame( |
143 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); | 143 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); |
144 void DidCommitAndDrawFrame(); | 144 void DidCommitAndDrawFrame(); |
145 void DidCompleteSwapBuffers(); | 145 void DidCompleteSwapBuffers(); |
146 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue, | 146 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue, |
147 base::Time wall_clock_time); | 147 base::TimeTicks clock_time); |
148 void DoCreateAndInitializeOutputSurface(); | 148 void DoCreateAndInitializeOutputSurface(); |
149 // |capabilities| is set only when |success| is true. | 149 // |capabilities| is set only when |success| is true. |
150 void OnOutputSurfaceInitializeAttempted( | 150 void OnOutputSurfaceInitializeAttempted( |
151 bool success, | 151 bool success, |
152 const RendererCapabilities& capabilities); | 152 const RendererCapabilities& capabilities); |
153 void SendCommitRequestToImplThreadIfNeeded(); | 153 void SendCommitRequestToImplThreadIfNeeded(); |
154 | 154 |
155 // Called on impl thread. | 155 // Called on impl thread. |
156 struct ReadbackRequest; | 156 struct ReadbackRequest; |
157 struct CommitPendingRequest; | 157 struct CommitPendingRequest; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 310 |
311 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 311 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
312 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 312 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
313 | 313 |
314 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 314 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
315 }; | 315 }; |
316 | 316 |
317 } // namespace cc | 317 } // namespace cc |
318 | 318 |
319 #endif // CC_TREES_THREAD_PROXY_H_ | 319 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |