| 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_THREAD_PROXY_H_ | 5 #ifndef CC_THREAD_PROXY_H_ |
| 6 #define CC_THREAD_PROXY_H_ | 6 #define CC_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual void PostAnimationEventsToMainThreadOnImplThread( | 79 virtual void PostAnimationEventsToMainThreadOnImplThread( |
| 80 scoped_ptr<AnimationEventsVector> queue, | 80 scoped_ptr<AnimationEventsVector> queue, |
| 81 base::Time wall_clock_time) OVERRIDE; | 81 base::Time wall_clock_time) OVERRIDE; |
| 82 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 82 virtual bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
| 83 int priority_cutoff) | 83 int priority_cutoff) |
| 84 OVERRIDE; | 84 OVERRIDE; |
| 85 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 85 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
| 86 virtual void SendManagedMemoryStats() OVERRIDE; | 86 virtual void SendManagedMemoryStats() OVERRIDE; |
| 87 virtual bool IsInsideDraw() OVERRIDE; | 87 virtual bool IsInsideDraw() OVERRIDE; |
| 88 virtual void RenewTreePriority() OVERRIDE; | 88 virtual void RenewTreePriority() OVERRIDE; |
| 89 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
| 90 OVERRIDE; |
| 89 | 91 |
| 90 // SchedulerClient implementation | 92 // SchedulerClient implementation |
| 91 virtual void scheduledActionBeginFrame() OVERRIDE; | 93 virtual void scheduledActionBeginFrame() OVERRIDE; |
| 92 virtual ScheduledActionDrawAndSwapResult | 94 virtual ScheduledActionDrawAndSwapResult |
| 93 scheduledActionDrawAndSwapIfPossible() OVERRIDE; | 95 scheduledActionDrawAndSwapIfPossible() OVERRIDE; |
| 94 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() | 96 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() |
| 95 OVERRIDE; | 97 OVERRIDE; |
| 96 virtual void scheduledActionCommit() OVERRIDE; | 98 virtual void scheduledActionCommit() OVERRIDE; |
| 97 virtual void scheduledActionCheckForCompletedTileUploads() OVERRIDE; | 99 virtual void scheduledActionCheckForCompletedTileUploads() OVERRIDE; |
| 98 virtual void scheduledActionActivatePendingTreeIfNeeded() OVERRIDE; | 100 virtual void scheduledActionActivatePendingTreeIfNeeded() OVERRIDE; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 181 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
| 180 void SetNeedsForcedCommitOnImplThread(); | 182 void SetNeedsForcedCommitOnImplThread(); |
| 181 void CheckOutputSurfaceStatusOnImplThread(); | 183 void CheckOutputSurfaceStatusOnImplThread(); |
| 182 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 184 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
| 183 void CapturePictureOnImplThread(CompletionEvent* completion, | 185 void CapturePictureOnImplThread(CompletionEvent* completion, |
| 184 skia::RefPtr<SkPicture>* picture); | 186 skia::RefPtr<SkPicture>* picture); |
| 185 void AsValueOnImplThread(CompletionEvent* completion, | 187 void AsValueOnImplThread(CompletionEvent* completion, |
| 186 base::DictionaryValue* state) const; | 188 base::DictionaryValue* state) const; |
| 187 void RenewTreePriorityOnImplThread(); | 189 void RenewTreePriorityOnImplThread(); |
| 188 void DidSwapUseIncompleteTileOnImplThread(); | 190 void DidSwapUseIncompleteTileOnImplThread(); |
| 191 void StartScrollbarAnimationOnImplThread(); |
| 189 | 192 |
| 190 // Accessed on main thread only. | 193 // Accessed on main thread only. |
| 191 | 194 |
| 192 // Set only when SetNeedsAnimate is called. | 195 // Set only when SetNeedsAnimate is called. |
| 193 bool animate_requested_; | 196 bool animate_requested_; |
| 194 // Set only when SetNeedsCommit is called. | 197 // Set only when SetNeedsCommit is called. |
| 195 bool commit_requested_; | 198 bool commit_requested_; |
| 196 // Set by SetNeedsCommit and SetNeedsAnimate. | 199 // Set by SetNeedsCommit and SetNeedsAnimate. |
| 197 bool commit_request_sent_to_impl_thread_; | 200 bool commit_request_sent_to_impl_thread_; |
| 198 // Set by BeginFrame | 201 // Set by BeginFrame |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 bool defer_commits_; | 260 bool defer_commits_; |
| 258 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_; | 261 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_; |
| 259 | 262 |
| 260 base::TimeTicks smoothness_takes_priority_expiration_time_; | 263 base::TimeTicks smoothness_takes_priority_expiration_time_; |
| 261 bool renew_tree_priority_on_impl_thread_pending_; | 264 bool renew_tree_priority_on_impl_thread_pending_; |
| 262 }; | 265 }; |
| 263 | 266 |
| 264 } // namespace cc | 267 } // namespace cc |
| 265 | 268 |
| 266 #endif // CC_THREAD_PROXY_H_ | 269 #endif // CC_THREAD_PROXY_H_ |
| OLD | NEW |