| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_THREADED_CHANNEL_H_ | 5 #ifndef CC_TREES_THREADED_CHANNEL_H_ |
| 6 #define CC_TREES_THREADED_CHANNEL_H_ | 6 #define CC_TREES_THREADED_CHANNEL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // ChannelMain Implementation | 78 // ChannelMain Implementation |
| 79 void SetThrottleFrameProductionOnImpl(bool throttle) override; | 79 void SetThrottleFrameProductionOnImpl(bool throttle) override; |
| 80 void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 80 void UpdateTopControlsStateOnImpl(TopControlsState constraints, |
| 81 TopControlsState current, | 81 TopControlsState current, |
| 82 bool animate) override; | 82 bool animate) override; |
| 83 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override; | 83 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override; |
| 84 void MainThreadHasStoppedFlingingOnImpl() override; | 84 void MainThreadHasStoppedFlingingOnImpl() override; |
| 85 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; | 85 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; |
| 86 void SetDeferCommitsOnImpl(bool defer_commits) override; | 86 void SetDeferCommitsOnImpl(bool defer_commits) override; |
| 87 void SetNeedsCommitOnImpl() override; | 87 void SetNeedsCommitOnImpl() override; |
| 88 void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) override; | 88 void BeginMainFrameAbortedOnImpl( |
| 89 CommitEarlyOutReason reason, |
| 90 base::TimeTicks main_thread_start_time) override; |
| 89 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; | 91 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; |
| 90 void SetVisibleOnImpl(bool visible) override; | 92 void SetVisibleOnImpl(bool visible) override; |
| 91 | 93 |
| 92 // Blocking calls to ProxyImpl | 94 // Blocking calls to ProxyImpl |
| 93 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; | 95 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; |
| 94 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; | 96 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; |
| 95 void FinishGLOnImpl(CompletionEvent* completion) override; | 97 void FinishGLOnImpl(CompletionEvent* completion) override; |
| 96 void MainFrameWillHappenOnImplForTesting( | 98 void MainFrameWillHappenOnImplForTesting( |
| 97 CompletionEvent* completion, | 99 CompletionEvent* completion, |
| 98 bool* main_frame_will_happen) override; | 100 bool* main_frame_will_happen) override; |
| 99 void StartCommitOnImpl(CompletionEvent* completion, | 101 void StartCommitOnImpl(CompletionEvent* completion, |
| 100 LayerTreeHost* layer_tree_host, | 102 LayerTreeHost* layer_tree_host, |
| 103 base::TimeTicks main_thread_start_time, |
| 101 bool hold_commit_for_activation) override; | 104 bool hold_commit_for_activation) override; |
| 102 void InitializeImplOnImpl(CompletionEvent* completion, | 105 void InitializeImplOnImpl(CompletionEvent* completion, |
| 103 LayerTreeHost* layer_tree_host) override; | 106 LayerTreeHost* layer_tree_host) override; |
| 104 void LayerTreeHostClosedOnImpl(CompletionEvent* completion) override; | 107 void LayerTreeHostClosedOnImpl(CompletionEvent* completion) override; |
| 105 | 108 |
| 106 // ChannelImpl Implementation | 109 // ChannelImpl Implementation |
| 107 void DidCompleteSwapBuffers() override; | 110 void DidCompleteSwapBuffers() override; |
| 108 void SetRendererCapabilitiesMainCopy( | 111 void SetRendererCapabilitiesMainCopy( |
| 109 const RendererCapabilities& capabilities) override; | 112 const RendererCapabilities& capabilities) override; |
| 110 void BeginMainFrameNotExpectedSoon() override; | 113 void BeginMainFrameNotExpectedSoon() override; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 148 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 146 | 149 |
| 147 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_; | 150 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_; |
| 148 | 151 |
| 149 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); | 152 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); |
| 150 }; | 153 }; |
| 151 | 154 |
| 152 } // namespace cc | 155 } // namespace cc |
| 153 | 156 |
| 154 #endif // CC_TREES_THREADED_CHANNEL_H_ | 157 #endif // CC_TREES_THREADED_CHANNEL_H_ |
| OLD | NEW |