| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual bool IsStarted() const OVERRIDE; | 46 virtual bool IsStarted() const OVERRIDE; |
| 47 virtual void SetLayerTreeHostClientReady() OVERRIDE; | 47 virtual void SetLayerTreeHostClientReady() OVERRIDE; |
| 48 virtual void SetVisible(bool visible) OVERRIDE; | 48 virtual void SetVisible(bool visible) OVERRIDE; |
| 49 virtual void CreateAndInitializeOutputSurface() OVERRIDE; | 49 virtual void CreateAndInitializeOutputSurface() OVERRIDE; |
| 50 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; | 50 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; |
| 51 virtual void SetNeedsAnimate() OVERRIDE; | 51 virtual void SetNeedsAnimate() OVERRIDE; |
| 52 virtual void SetNeedsUpdateLayers() OVERRIDE; | 52 virtual void SetNeedsUpdateLayers() OVERRIDE; |
| 53 virtual void SetNeedsCommit() OVERRIDE; | 53 virtual void SetNeedsCommit() OVERRIDE; |
| 54 virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE; | 54 virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE; |
| 55 virtual void SetNextCommitWaitsForActivation() OVERRIDE; | 55 virtual void SetNextCommitWaitsForActivation() OVERRIDE; |
| 56 virtual void SetNextCommitForcesRedraw() OVERRIDE; |
| 56 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; | 57 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; |
| 57 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; | 58 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; |
| 58 virtual bool CommitRequested() const OVERRIDE; | 59 virtual bool CommitRequested() const OVERRIDE; |
| 59 virtual void MainThreadHasStoppedFlinging() OVERRIDE; | 60 virtual void MainThreadHasStoppedFlinging() OVERRIDE; |
| 60 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; | 61 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; |
| 61 virtual void Stop() OVERRIDE; | 62 virtual void Stop() OVERRIDE; |
| 62 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 63 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 63 virtual void AcquireLayerTextures() OVERRIDE; | 64 virtual void AcquireLayerTextures() OVERRIDE; |
| 64 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 65 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 65 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 66 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 175 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
| 175 void SchedulerStateAsValueOnImplThreadForTesting( | 176 void SchedulerStateAsValueOnImplThreadForTesting( |
| 176 SchedulerStateRequest* request); | 177 SchedulerStateRequest* request); |
| 177 void AsValueOnImplThread(CompletionEvent* completion, | 178 void AsValueOnImplThread(CompletionEvent* completion, |
| 178 base::DictionaryValue* state) const; | 179 base::DictionaryValue* state) const; |
| 179 void RenewTreePriorityOnImplThread(); | 180 void RenewTreePriorityOnImplThread(); |
| 180 void DidSwapUseIncompleteTileOnImplThread(); | 181 void DidSwapUseIncompleteTileOnImplThread(); |
| 181 void StartScrollbarAnimationOnImplThread(); | 182 void StartScrollbarAnimationOnImplThread(); |
| 182 void MainThreadHasStoppedFlingingOnImplThread(); | 183 void MainThreadHasStoppedFlingingOnImplThread(); |
| 183 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 184 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); |
| 185 void SetFullRootLayerDamageOnImplThread(); |
| 184 | 186 |
| 185 // Accessed on main thread only. | 187 // Accessed on main thread only. |
| 186 | 188 |
| 187 // Set only when SetNeedsAnimate is called. | 189 // Set only when SetNeedsAnimate is called. |
| 188 bool animate_requested_; | 190 bool animate_requested_; |
| 189 // Set only when SetNeedsCommit is called. | 191 // Set only when SetNeedsCommit is called. |
| 190 bool commit_requested_; | 192 bool commit_requested_; |
| 191 // Set by SetNeedsCommit and SetNeedsAnimate. | 193 // Set by SetNeedsCommit and SetNeedsAnimate. |
| 192 bool commit_request_sent_to_impl_thread_; | 194 bool commit_request_sent_to_impl_thread_; |
| 193 // Set by BeginFrameOnMainThread | 195 // Set by BeginFrameOnMainThread |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // activation_duration_history_. | 268 // activation_duration_history_. |
| 267 base::TimeTicks begin_frame_sent_to_main_thread_time_; | 269 base::TimeTicks begin_frame_sent_to_main_thread_time_; |
| 268 base::TimeTicks commit_complete_time_; | 270 base::TimeTicks commit_complete_time_; |
| 269 | 271 |
| 270 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 272 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 271 }; | 273 }; |
| 272 | 274 |
| 273 } // namespace cc | 275 } // namespace cc |
| 274 | 276 |
| 275 #endif // CC_TREES_THREAD_PROXY_H_ | 277 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |