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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 198 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
199 void SetNeedsAnimateOnImplThread() override; | 199 void SetNeedsAnimateOnImplThread() override; |
200 void SetNeedsPrepareTilesOnImplThread() override; | 200 void SetNeedsPrepareTilesOnImplThread() override; |
201 void SetNeedsCommitOnImplThread() override; | 201 void SetNeedsCommitOnImplThread() override; |
202 void PostAnimationEventsToMainThreadOnImplThread( | 202 void PostAnimationEventsToMainThreadOnImplThread( |
203 scoped_ptr<AnimationEventsVector> queue) override; | 203 scoped_ptr<AnimationEventsVector> queue) override; |
204 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 204 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
205 int priority_cutoff) override; | 205 int priority_cutoff) override; |
206 bool IsInsideDraw() override; | 206 bool IsInsideDraw() override; |
207 void RenewTreePriority() override; | 207 void RenewTreePriority() override; |
208 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, | 208 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
209 base::TimeDelta delay) override; | 209 base::TimeDelta delay) override; |
210 void DidActivateSyncTree() override; | 210 void DidActivateSyncTree() override; |
211 void DidPrepareTiles() override; | 211 void DidPrepareTiles() override; |
212 void DidCompletePageScaleAnimationOnImplThread() override; | 212 void DidCompletePageScaleAnimationOnImplThread() override; |
213 | 213 |
214 // SchedulerClient implementation | 214 // SchedulerClient implementation |
215 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 215 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
216 void ScheduledActionSendBeginMainFrame() override; | 216 void ScheduledActionSendBeginMainFrame() override; |
217 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 217 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
218 DrawResult ScheduledActionDrawAndSwapForced() override; | 218 DrawResult ScheduledActionDrawAndSwapForced() override; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 305 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
306 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 306 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
307 | 307 |
308 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 308 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
309 }; | 309 }; |
310 | 310 |
311 } // namespace cc | 311 } // namespace cc |
312 | 312 |
313 #endif // CC_TREES_THREAD_PROXY_H_ | 313 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |