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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 void DidSwapBuffersCompleteOnImplThread() override; | 182 void DidSwapBuffersCompleteOnImplThread() override; |
183 void OnCanDrawStateChanged(bool can_draw) override; | 183 void OnCanDrawStateChanged(bool can_draw) override; |
184 void NotifyReadyToActivate() override; | 184 void NotifyReadyToActivate() override; |
185 // Please call these 3 functions through | 185 // Please call these 3 functions through |
186 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 186 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
187 // SetNeedsAnimate(). | 187 // SetNeedsAnimate(). |
188 void SetNeedsRedrawOnImplThread() override; | 188 void SetNeedsRedrawOnImplThread() override; |
189 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 189 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
190 void SetNeedsAnimateOnImplThread() override; | 190 void SetNeedsAnimateOnImplThread() override; |
191 void SetNeedsManageTilesOnImplThread() override; | 191 void SetNeedsManageTilesOnImplThread() override; |
192 void DidInitializeVisibleTileOnImplThread() override; | |
193 void SetNeedsCommitOnImplThread() override; | 192 void SetNeedsCommitOnImplThread() override; |
194 void PostAnimationEventsToMainThreadOnImplThread( | 193 void PostAnimationEventsToMainThreadOnImplThread( |
195 scoped_ptr<AnimationEventsVector> queue) override; | 194 scoped_ptr<AnimationEventsVector> queue) override; |
196 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 195 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
197 int priority_cutoff) override; | 196 int priority_cutoff) override; |
198 bool IsInsideDraw() override; | 197 bool IsInsideDraw() override; |
199 void RenewTreePriority() override; | 198 void RenewTreePriority() override; |
200 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, | 199 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, |
201 base::TimeDelta delay) override; | 200 base::TimeDelta delay) override; |
202 void DidActivateSyncTree() override; | 201 void DidActivateSyncTree() override; |
203 void DidManageTiles() override; | 202 void DidManageTiles() override; |
204 | 203 |
205 // SchedulerClient implementation | 204 // SchedulerClient implementation |
206 BeginFrameSource* ExternalBeginFrameSource() override; | 205 BeginFrameSource* ExternalBeginFrameSource() override; |
207 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 206 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
208 void ScheduledActionSendBeginMainFrame() override; | 207 void ScheduledActionSendBeginMainFrame() override; |
209 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 208 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
210 DrawResult ScheduledActionDrawAndSwapForced() override; | 209 DrawResult ScheduledActionDrawAndSwapForced() override; |
211 void ScheduledActionAnimate() override; | 210 void ScheduledActionAnimate() override; |
212 void ScheduledActionCommit() override; | 211 void ScheduledActionCommit() override; |
213 void ScheduledActionUpdateVisibleTiles() override; | |
214 void ScheduledActionActivateSyncTree() override; | 212 void ScheduledActionActivateSyncTree() override; |
215 void ScheduledActionBeginOutputSurfaceCreation() override; | 213 void ScheduledActionBeginOutputSurfaceCreation() override; |
216 void ScheduledActionManageTiles() override; | 214 void ScheduledActionManageTiles() override; |
217 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 215 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; |
218 base::TimeDelta DrawDurationEstimate() override; | 216 base::TimeDelta DrawDurationEstimate() override; |
219 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 217 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; |
220 base::TimeDelta CommitToActivateDurationEstimate() override; | 218 base::TimeDelta CommitToActivateDurationEstimate() override; |
221 void DidBeginImplFrameDeadline() override; | 219 void DidBeginImplFrameDeadline() override; |
222 | 220 |
223 // ResourceUpdateControllerClient implementation | 221 // ResourceUpdateControllerClient implementation |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 288 |
291 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 289 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
292 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 290 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
293 | 291 |
294 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 292 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
295 }; | 293 }; |
296 | 294 |
297 } // namespace cc | 295 } // namespace cc |
298 | 296 |
299 #endif // CC_TREES_THREAD_PROXY_H_ | 297 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |