| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 const MainThreadOnly& main() const; | 150 const MainThreadOnly& main() const; |
| 151 const MainThreadOrBlockedMainThread& blocked_main() const; | 151 const MainThreadOrBlockedMainThread& blocked_main() const; |
| 152 const CompositorThreadOnly& impl() const; | 152 const CompositorThreadOnly& impl() const; |
| 153 | 153 |
| 154 // Proxy implementation | 154 // Proxy implementation |
| 155 void FinishAllRendering() override; | 155 void FinishAllRendering() override; |
| 156 bool IsStarted() const override; | 156 bool IsStarted() const override; |
| 157 void SetOutputSurface(scoped_ptr<OutputSurface>) override; | 157 void SetOutputSurface(scoped_ptr<OutputSurface>) override; |
| 158 void SetLayerTreeHostClientReady() override; | 158 void SetLayerTreeHostClientReady() override; |
| 159 void SetVisible(bool visible) override; | 159 void SetVisible(bool visible) override; |
| 160 void SetThrottleFrameProduction(bool throttle) override; |
| 160 const RendererCapabilities& GetRendererCapabilities() const override; | 161 const RendererCapabilities& GetRendererCapabilities() const override; |
| 161 void SetNeedsAnimate() override; | 162 void SetNeedsAnimate() override; |
| 162 void SetNeedsUpdateLayers() override; | 163 void SetNeedsUpdateLayers() override; |
| 163 void SetNeedsCommit() override; | 164 void SetNeedsCommit() override; |
| 164 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 165 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
| 165 void SetNextCommitWaitsForActivation() override; | 166 void SetNextCommitWaitsForActivation() override; |
| 166 void NotifyInputThrottledUntilCommit() override; | 167 void NotifyInputThrottledUntilCommit() override; |
| 167 void SetDeferCommits(bool defer_commits) override; | 168 void SetDeferCommits(bool defer_commits) override; |
| 168 bool CommitRequested() const override; | 169 bool CommitRequested() const override; |
| 169 bool BeginMainFrameRequested() const override; | 170 bool BeginMainFrameRequested() const override; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Called on impl thread. | 255 // Called on impl thread. |
| 255 struct SchedulerStateRequest; | 256 struct SchedulerStateRequest; |
| 256 | 257 |
| 257 void StartCommitOnImplThread(CompletionEvent* completion, | 258 void StartCommitOnImplThread(CompletionEvent* completion, |
| 258 ResourceUpdateQueue* queue); | 259 ResourceUpdateQueue* queue); |
| 259 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); | 260 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); |
| 260 void FinishAllRenderingOnImplThread(CompletionEvent* completion); | 261 void FinishAllRenderingOnImplThread(CompletionEvent* completion); |
| 261 void InitializeImplOnImplThread(CompletionEvent* completion); | 262 void InitializeImplOnImplThread(CompletionEvent* completion); |
| 262 void SetLayerTreeHostClientReadyOnImplThread(); | 263 void SetLayerTreeHostClientReadyOnImplThread(); |
| 263 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); | 264 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); |
| 265 void SetThrottleFrameProductionOnImplThread(bool throttle); |
| 264 void HasInitializedOutputSurfaceOnImplThread( | 266 void HasInitializedOutputSurfaceOnImplThread( |
| 265 CompletionEvent* completion, | 267 CompletionEvent* completion, |
| 266 bool* has_initialized_output_surface); | 268 bool* has_initialized_output_surface); |
| 267 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); | 269 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); |
| 268 void InitializeOutputSurfaceOnImplThread( | 270 void InitializeOutputSurfaceOnImplThread( |
| 269 scoped_ptr<OutputSurface> output_surface); | 271 scoped_ptr<OutputSurface> output_surface); |
| 270 void FinishGLOnImplThread(CompletionEvent* completion); | 272 void FinishGLOnImplThread(CompletionEvent* completion); |
| 271 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 273 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
| 272 DrawResult DrawSwapInternal(bool forced_draw); | 274 DrawResult DrawSwapInternal(bool forced_draw); |
| 273 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 275 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 297 | 299 |
| 298 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 300 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 299 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 301 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 300 | 302 |
| 301 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 303 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 302 }; | 304 }; |
| 303 | 305 |
| 304 } // namespace cc | 306 } // namespace cc |
| 305 | 307 |
| 306 #endif // CC_TREES_THREAD_PROXY_H_ | 308 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |