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