OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_REMOTE_CHANNEL_IMPL_H_ | 5 #ifndef CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
6 #define CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 6 #define CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 const RendererCapabilities& capabilities) override; | 179 const RendererCapabilities& capabilities) override; |
180 void DidCompletePageScaleAnimation() override; | 180 void DidCompletePageScaleAnimation() override; |
181 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> | 181 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> |
182 begin_main_frame_state) override; | 182 begin_main_frame_state) override; |
183 | 183 |
184 void SendMessageProto(std::unique_ptr<proto::CompositorMessage> proto); | 184 void SendMessageProto(std::unique_ptr<proto::CompositorMessage> proto); |
185 | 185 |
186 // called on main thread. | 186 // called on main thread. |
187 void HandleProto(const proto::CompositorMessageToImpl& proto); | 187 void HandleProto(const proto::CompositorMessageToImpl& proto); |
188 void DidCompleteSwapBuffersOnMain(); | 188 void DidCompleteSwapBuffersOnMain(); |
| 189 void DidCommitAndDrawFrameOnMain(); |
189 void DidLoseOutputSurfaceOnMain(); | 190 void DidLoseOutputSurfaceOnMain(); |
190 void RequestNewOutputSurfaceOnMain(); | 191 void RequestNewOutputSurfaceOnMain(); |
191 void DidInitializeOutputSurfaceOnMain( | 192 void DidInitializeOutputSurfaceOnMain( |
192 bool success, | 193 bool success, |
193 const RendererCapabilities& capabilities); | 194 const RendererCapabilities& capabilities); |
194 void SendMessageProtoOnMain(std::unique_ptr<proto::CompositorMessage> proto); | 195 void SendMessageProtoOnMain(std::unique_ptr<proto::CompositorMessage> proto); |
195 void PostSetNeedsRedrawToImpl(const gfx::Rect& damaged_rect); | 196 void PostSetNeedsRedrawToImpl(const gfx::Rect& damaged_rect); |
196 | 197 |
197 void InitializeImplOnImpl(CompletionEvent* completion, | 198 void InitializeImplOnImpl(CompletionEvent* completion, |
198 LayerTreeHost* layer_tree_host); | 199 LayerTreeHost* layer_tree_host); |
(...skipping 14 matching lines...) Expand all Loading... |
213 CompositorThreadOnly compositor_thread_vars_unsafe_; | 214 CompositorThreadOnly compositor_thread_vars_unsafe_; |
214 | 215 |
215 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 216 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
216 | 217 |
217 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); | 218 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); |
218 }; | 219 }; |
219 | 220 |
220 } // namespace cc | 221 } // namespace cc |
221 | 222 |
222 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 223 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
OLD | NEW |