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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 base::TimeTicks main_thread_start_time) override; | 99 base::TimeTicks main_thread_start_time) override; |
100 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; | 100 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; |
101 void SetVisibleOnImpl(bool visible) override; | 101 void SetVisibleOnImpl(bool visible) override; |
102 | 102 |
103 // Blocking calls to ProxyImpl | 103 // Blocking calls to ProxyImpl |
104 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; | 104 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; |
105 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; | 105 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; |
106 void MainFrameWillHappenOnImplForTesting( | 106 void MainFrameWillHappenOnImplForTesting( |
107 CompletionEvent* completion, | 107 CompletionEvent* completion, |
108 bool* main_frame_will_happen) override; | 108 bool* main_frame_will_happen) override; |
109 void StartCommitOnImpl(CompletionEvent* completion, | 109 void NotifyReadyToCommitOnImpl(CompletionEvent* completion, |
110 LayerTreeHost* layer_tree_host, | 110 LayerTreeHost* layer_tree_host, |
111 base::TimeTicks main_thread_start_time, | 111 base::TimeTicks main_thread_start_time, |
112 bool hold_commit_for_activation) override; | 112 bool hold_commit_for_activation) override; |
113 void SynchronouslyInitializeImpl( | 113 void SynchronouslyInitializeImpl( |
114 LayerTreeHost* layer_tree_host, | 114 LayerTreeHost* layer_tree_host, |
115 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override; | 115 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override; |
116 void SynchronouslyCloseImpl() override; | 116 void SynchronouslyCloseImpl() override; |
117 | 117 |
118 // ChannelImpl Implementation | 118 // ChannelImpl Implementation |
119 void DidCompleteSwapBuffers() override; | 119 void DidCompleteSwapBuffers() override; |
120 void SetRendererCapabilitiesMainCopy( | 120 void SetRendererCapabilitiesMainCopy( |
121 const RendererCapabilities& capabilities) override; | 121 const RendererCapabilities& capabilities) override; |
122 void BeginMainFrameNotExpectedSoon() override; | 122 void BeginMainFrameNotExpectedSoon() override; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // Used on the main thread to safely queue calls to ProxyImpl to be run on the | 206 // Used on the main thread to safely queue calls to ProxyImpl to be run on the |
207 // impl thread. | 207 // impl thread. |
208 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 208 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
209 | 209 |
210 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); | 210 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); |
211 }; | 211 }; |
212 | 212 |
213 } // namespace cc | 213 } // namespace cc |
214 | 214 |
215 #endif // CC_TREES_THREADED_CHANNEL_H_ | 215 #endif // CC_TREES_THREADED_CHANNEL_H_ |
OLD | NEW |