| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 NotifyInputThrottledUntilCommit() OVERRIDE; | 56 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; |
| 57 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; | 57 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; |
| 58 virtual bool CommitRequested() const OVERRIDE; | 58 virtual bool CommitRequested() const OVERRIDE; |
| 59 virtual bool BeginMainFrameRequested() const OVERRIDE; | 59 virtual bool BeginMainFrameRequested() const OVERRIDE; |
| 60 virtual void MainThreadHasStoppedFlinging() OVERRIDE; | |
| 61 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; | 60 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; |
| 62 virtual void Stop() OVERRIDE; | 61 virtual void Stop() OVERRIDE; |
| 63 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 62 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 64 virtual void AcquireLayerTextures() OVERRIDE; | 63 virtual void AcquireLayerTextures() OVERRIDE; |
| 65 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 64 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 66 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 65 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
| 67 virtual bool CommitPendingForTesting() OVERRIDE; | 66 virtual bool CommitPendingForTesting() OVERRIDE; |
| 68 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; | 67 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; |
| 69 | 68 |
| 70 // LayerTreeHostImplClient implementation | 69 // LayerTreeHostImplClient implementation |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 181 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
| 183 void CheckOutputSurfaceStatusOnImplThread(); | 182 void CheckOutputSurfaceStatusOnImplThread(); |
| 184 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 183 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
| 185 void SchedulerStateAsValueOnImplThreadForTesting( | 184 void SchedulerStateAsValueOnImplThreadForTesting( |
| 186 SchedulerStateRequest* request); | 185 SchedulerStateRequest* request); |
| 187 void AsValueOnImplThread(CompletionEvent* completion, | 186 void AsValueOnImplThread(CompletionEvent* completion, |
| 188 base::DictionaryValue* state) const; | 187 base::DictionaryValue* state) const; |
| 189 void RenewTreePriorityOnImplThread(); | 188 void RenewTreePriorityOnImplThread(); |
| 190 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); | 189 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); |
| 191 void StartScrollbarAnimationOnImplThread(); | 190 void StartScrollbarAnimationOnImplThread(); |
| 192 void MainThreadHasStoppedFlingingOnImplThread(); | |
| 193 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 191 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); |
| 194 | 192 |
| 195 // Accessed on main thread only. | 193 // Accessed on main thread only. |
| 196 | 194 |
| 197 // Set only when SetNeedsAnimate is called. | 195 // Set only when SetNeedsAnimate is called. |
| 198 bool animate_requested_; | 196 bool animate_requested_; |
| 199 // Set only when SetNeedsCommit is called. | 197 // Set only when SetNeedsCommit is called. |
| 200 bool commit_requested_; | 198 bool commit_requested_; |
| 201 // Set by SetNeedsAnimate, SetNeedsUpdateLayers, and SetNeedsCommit. | 199 // Set by SetNeedsAnimate, SetNeedsUpdateLayers, and SetNeedsCommit. |
| 202 bool commit_request_sent_to_impl_thread_; | 200 bool commit_request_sent_to_impl_thread_; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 273 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 276 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; | 274 base::WeakPtrFactory<ThreadProxy> weak_factory_on_impl_thread_; |
| 277 base::WeakPtrFactory<ThreadProxy> weak_factory_; | 275 base::WeakPtrFactory<ThreadProxy> weak_factory_; |
| 278 | 276 |
| 279 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 277 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 280 }; | 278 }; |
| 281 | 279 |
| 282 } // namespace cc | 280 } // namespace cc |
| 283 | 281 |
| 284 #endif // CC_TREES_THREAD_PROXY_H_ | 282 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |