| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 virtual bool CommitRequested() const OVERRIDE; | 165 virtual bool CommitRequested() const OVERRIDE; |
| 166 virtual bool BeginMainFrameRequested() const OVERRIDE; | 166 virtual bool BeginMainFrameRequested() const OVERRIDE; |
| 167 virtual void MainThreadHasStoppedFlinging() OVERRIDE; | 167 virtual void MainThreadHasStoppedFlinging() OVERRIDE; |
| 168 virtual void Start() OVERRIDE; | 168 virtual void Start() OVERRIDE; |
| 169 virtual void Stop() OVERRIDE; | 169 virtual void Stop() OVERRIDE; |
| 170 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 170 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 171 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 171 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 172 virtual bool SupportsImplScrolling() const OVERRIDE; | 172 virtual bool SupportsImplScrolling() const OVERRIDE; |
| 173 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE; | 173 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE; |
| 174 virtual void AsValueInto(base::debug::TracedValue* value) const OVERRIDE; | 174 virtual void AsValueInto(base::debug::TracedValue* value) const OVERRIDE; |
| 175 virtual bool CommitPendingForTesting() OVERRIDE; | 175 virtual bool MainFrameWillHappenForTesting() OVERRIDE; |
| 176 | 176 |
| 177 // LayerTreeHostImplClient implementation | 177 // LayerTreeHostImplClient implementation |
| 178 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; | 178 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; |
| 179 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 179 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
| 180 virtual void CommitVSyncParameters(base::TimeTicks timebase, | 180 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 181 base::TimeDelta interval) OVERRIDE; | 181 base::TimeDelta interval) OVERRIDE; |
| 182 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE; | 182 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE; |
| 183 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; | 183 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; |
| 184 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE; | 184 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE; |
| 185 virtual void DidSwapBuffersOnImplThread() OVERRIDE; | 185 virtual void DidSwapBuffersOnImplThread() OVERRIDE; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 void DidCommitAndDrawFrame(); | 244 void DidCommitAndDrawFrame(); |
| 245 void DidCompleteSwapBuffers(); | 245 void DidCompleteSwapBuffers(); |
| 246 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); | 246 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); |
| 247 void DidLoseOutputSurface(); | 247 void DidLoseOutputSurface(); |
| 248 void CreateAndInitializeOutputSurface(); | 248 void CreateAndInitializeOutputSurface(); |
| 249 void DidInitializeOutputSurface(bool success, | 249 void DidInitializeOutputSurface(bool success, |
| 250 const RendererCapabilities& capabilities); | 250 const RendererCapabilities& capabilities); |
| 251 void SendCommitRequestToImplThreadIfNeeded(); | 251 void SendCommitRequestToImplThreadIfNeeded(); |
| 252 | 252 |
| 253 // Called on impl thread. | 253 // Called on impl thread. |
| 254 struct CommitPendingRequest; | |
| 255 struct SchedulerStateRequest; | 254 struct SchedulerStateRequest; |
| 256 | 255 |
| 257 void StartCommitOnImplThread(CompletionEvent* completion, | 256 void StartCommitOnImplThread(CompletionEvent* completion, |
| 258 ResourceUpdateQueue* queue); | 257 ResourceUpdateQueue* queue); |
| 259 void BeginMainFrameAbortedOnImplThread(bool did_handle); | 258 void BeginMainFrameAbortedOnImplThread(bool did_handle); |
| 260 void FinishAllRenderingOnImplThread(CompletionEvent* completion); | 259 void FinishAllRenderingOnImplThread(CompletionEvent* completion); |
| 261 void InitializeImplOnImplThread(CompletionEvent* completion); | 260 void InitializeImplOnImplThread(CompletionEvent* completion); |
| 262 void SetLayerTreeHostClientReadyOnImplThread(); | 261 void SetLayerTreeHostClientReadyOnImplThread(); |
| 263 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); | 262 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); |
| 264 void UpdateBackgroundAnimateTicking(); | 263 void UpdateBackgroundAnimateTicking(); |
| 265 void HasInitializedOutputSurfaceOnImplThread( | 264 void HasInitializedOutputSurfaceOnImplThread( |
| 266 CompletionEvent* completion, | 265 CompletionEvent* completion, |
| 267 bool* has_initialized_output_surface); | 266 bool* has_initialized_output_surface); |
| 268 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); | 267 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); |
| 269 void InitializeOutputSurfaceOnImplThread( | 268 void InitializeOutputSurfaceOnImplThread( |
| 270 scoped_ptr<OutputSurface> output_surface); | 269 scoped_ptr<OutputSurface> output_surface); |
| 271 void FinishGLOnImplThread(CompletionEvent* completion); | 270 void FinishGLOnImplThread(CompletionEvent* completion); |
| 272 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 271 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
| 273 DrawResult DrawSwapInternal(bool forced_draw); | 272 DrawResult DrawSwapInternal(bool forced_draw); |
| 274 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 273 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
| 275 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 274 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, |
| 275 bool* main_frame_will_happen); |
| 276 void AsValueOnImplThread(CompletionEvent* completion, | 276 void AsValueOnImplThread(CompletionEvent* completion, |
| 277 base::debug::TracedValue* state) const; | 277 base::debug::TracedValue* state) const; |
| 278 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); | 278 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); |
| 279 void MainThreadHasStoppedFlingingOnImplThread(); | 279 void MainThreadHasStoppedFlingingOnImplThread(); |
| 280 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 280 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); |
| 281 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); | 281 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); |
| 282 | 282 |
| 283 LayerTreeHost* layer_tree_host(); | 283 LayerTreeHost* layer_tree_host(); |
| 284 const LayerTreeHost* layer_tree_host() const; | 284 const LayerTreeHost* layer_tree_host() const; |
| 285 | 285 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 297 | 297 |
| 298 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 298 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 299 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 299 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 300 | 300 |
| 301 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 301 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 302 }; | 302 }; |
| 303 | 303 |
| 304 } // namespace cc | 304 } // namespace cc |
| 305 | 305 |
| 306 #endif // CC_TREES_THREAD_PROXY_H_ | 306 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |