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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 scoped_ptr<AnimationEventsVector> queue) override; | 202 scoped_ptr<AnimationEventsVector> queue) override; |
203 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 203 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
204 int priority_cutoff) override; | 204 int priority_cutoff) override; |
205 bool IsInsideDraw() override; | 205 bool IsInsideDraw() override; |
206 void RenewTreePriority() override; | 206 void RenewTreePriority() override; |
207 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, | 207 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, |
208 base::TimeDelta delay) override; | 208 base::TimeDelta delay) override; |
209 void DidActivateSyncTree() override; | 209 void DidActivateSyncTree() override; |
210 void DidPrepareTiles() override; | 210 void DidPrepareTiles() override; |
211 void DidCompletePageScaleAnimationOnImplThread() override; | 211 void DidCompletePageScaleAnimationOnImplThread() override; |
| 212 base::TimeTicks GetNextBeginImplFrameTimeIfRequested() const override; |
212 | 213 |
213 // SchedulerClient implementation | 214 // SchedulerClient implementation |
214 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 215 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
215 void ScheduledActionSendBeginMainFrame() override; | 216 void ScheduledActionSendBeginMainFrame() override; |
216 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 217 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
217 DrawResult ScheduledActionDrawAndSwapForced() override; | 218 DrawResult ScheduledActionDrawAndSwapForced() override; |
218 void ScheduledActionAnimate() override; | 219 void ScheduledActionAnimate() override; |
219 void ScheduledActionCommit() override; | 220 void ScheduledActionCommit() override; |
220 void ScheduledActionActivateSyncTree() override; | 221 void ScheduledActionActivateSyncTree() override; |
221 void ScheduledActionBeginOutputSurfaceCreation() override; | 222 void ScheduledActionBeginOutputSurfaceCreation() override; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 302 |
302 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 303 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
303 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 304 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
304 | 305 |
305 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 306 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
306 }; | 307 }; |
307 | 308 |
308 } // namespace cc | 309 } // namespace cc |
309 | 310 |
310 #endif // CC_TREES_THREAD_PROXY_H_ | 311 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |