Chromium Code Reviews| 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 29 matching lines...) Expand all Loading... | |
| 40 LayerTreeHost* layer_tree_host, | 40 LayerTreeHost* layer_tree_host, |
| 41 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 41 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 42 | 42 |
| 43 virtual ~ThreadProxy(); | 43 virtual ~ThreadProxy(); |
| 44 | 44 |
| 45 // Proxy implementation | 45 // Proxy implementation |
| 46 virtual void FinishAllRendering() OVERRIDE; | 46 virtual void FinishAllRendering() OVERRIDE; |
| 47 virtual bool IsStarted() const OVERRIDE; | 47 virtual bool IsStarted() const OVERRIDE; |
| 48 virtual void SetLayerTreeHostClientReady() OVERRIDE; | 48 virtual void SetLayerTreeHostClientReady() OVERRIDE; |
| 49 virtual void SetVisible(bool visible) OVERRIDE; | 49 virtual void SetVisible(bool visible) OVERRIDE; |
| 50 virtual void CreateAndInitializeOutputSurface() OVERRIDE; | |
| 51 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; | 50 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; |
| 52 virtual void SetNeedsAnimate() OVERRIDE; | 51 virtual void SetNeedsAnimate() OVERRIDE; |
| 53 virtual void SetNeedsUpdateLayers() OVERRIDE; | 52 virtual void SetNeedsUpdateLayers() OVERRIDE; |
| 54 virtual void SetNeedsCommit() OVERRIDE; | 53 virtual void SetNeedsCommit() OVERRIDE; |
| 55 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE; | 54 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE; |
| 56 virtual void SetNextCommitWaitsForActivation() OVERRIDE; | 55 virtual void SetNextCommitWaitsForActivation() OVERRIDE; |
| 57 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; | 56 virtual void NotifyInputThrottledUntilCommit() OVERRIDE; |
| 58 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; | 57 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; |
| 59 virtual bool CommitRequested() const OVERRIDE; | 58 virtual bool CommitRequested() const OVERRIDE; |
| 60 virtual bool BeginMainFrameRequested() const OVERRIDE; | 59 virtual bool BeginMainFrameRequested() const OVERRIDE; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 }; | 141 }; |
| 143 | 142 |
| 144 // Called on main thread. | 143 // Called on main thread. |
| 145 void SetRendererCapabilitiesMainThreadCopy( | 144 void SetRendererCapabilitiesMainThreadCopy( |
| 146 const RendererCapabilities& capabilities); | 145 const RendererCapabilities& capabilities); |
| 147 void BeginMainFrame( | 146 void BeginMainFrame( |
| 148 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); | 147 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); |
| 149 void DidCommitAndDrawFrame(); | 148 void DidCommitAndDrawFrame(); |
| 150 void DidCompleteSwapBuffers(); | 149 void DidCompleteSwapBuffers(); |
| 151 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); | 150 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); |
| 151 void CreateAndInitializeOutputSurface(); | |
|
enne (OOO)
2014/05/16 20:50:14
Can you pick better names to differentiate this an
danakj
2014/05/16 21:02:14
I agree, though the following function is being re
| |
| 152 void DoCreateAndInitializeOutputSurface(); | 152 void DoCreateAndInitializeOutputSurface(); |
| 153 void SendCommitRequestToImplThreadIfNeeded(); | 153 void SendCommitRequestToImplThreadIfNeeded(); |
| 154 | 154 |
| 155 // Called on impl thread. | 155 // Called on impl thread. |
| 156 struct CommitPendingRequest; | 156 struct CommitPendingRequest; |
| 157 struct SchedulerStateRequest; | 157 struct SchedulerStateRequest; |
| 158 | 158 |
| 159 void StartCommitOnImplThread(CompletionEvent* completion, | 159 void StartCommitOnImplThread(CompletionEvent* completion, |
| 160 ResourceUpdateQueue* queue); | 160 ResourceUpdateQueue* queue); |
| 161 void BeginMainFrameAbortedOnImplThread(bool did_handle); | 161 void BeginMainFrameAbortedOnImplThread(bool did_handle); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 292 | 292 |
| 293 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 293 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 294 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 294 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 295 | 295 |
| 296 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 296 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 297 }; | 297 }; |
| 298 | 298 |
| 299 } // namespace cc | 299 } // namespace cc |
| 300 | 300 |
| 301 #endif // CC_TREES_THREAD_PROXY_H_ | 301 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |