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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Called on main thread. | 140 // Called on main thread. |
141 void SetRendererCapabilitiesMainThreadCopy( | 141 void SetRendererCapabilitiesMainThreadCopy( |
142 const RendererCapabilities& capabilities); | 142 const RendererCapabilities& capabilities); |
143 void BeginMainFrame( | 143 void BeginMainFrame( |
144 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); | 144 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); |
145 void DidCommitAndDrawFrame(); | 145 void DidCommitAndDrawFrame(); |
146 void DidCompleteSwapBuffers(); | 146 void DidCompleteSwapBuffers(); |
147 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); | 147 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); |
148 void DoCreateAndInitializeOutputSurface(); | 148 void DoCreateAndInitializeOutputSurface(); |
149 // |capabilities| is set only when |success| is true. | |
150 void OnOutputSurfaceInitializeAttempted( | |
151 bool success, | |
152 const RendererCapabilities& capabilities); | |
153 void SendCommitRequestToImplThreadIfNeeded(); | 149 void SendCommitRequestToImplThreadIfNeeded(); |
154 | 150 |
155 // Called on impl thread. | 151 // Called on impl thread. |
156 struct ReadbackRequest; | 152 struct ReadbackRequest; |
157 struct CommitPendingRequest; | 153 struct CommitPendingRequest; |
158 struct SchedulerStateRequest; | 154 struct SchedulerStateRequest; |
159 | 155 |
160 void ForceCommitForReadbackOnImplThread( | 156 void ForceCommitForReadbackOnImplThread( |
161 CompletionEvent* begin_main_frame_sent_completion, | 157 CompletionEvent* begin_main_frame_sent_completion, |
162 ReadbackRequest* request); | 158 ReadbackRequest* request); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 297 |
302 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 298 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
303 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 299 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
304 | 300 |
305 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 301 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
306 }; | 302 }; |
307 | 303 |
308 } // namespace cc | 304 } // namespace cc |
309 | 305 |
310 #endif // CC_TREES_THREAD_PROXY_H_ | 306 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |