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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 const RendererCapabilities& capabilities) override; | 180 const RendererCapabilities& capabilities) override; |
181 void DidCompletePageScaleAnimation() override; | 181 void DidCompletePageScaleAnimation() override; |
182 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> | 182 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> |
183 begin_main_frame_state) override; | 183 begin_main_frame_state) override; |
184 | 184 |
185 void SendMessageProto(std::unique_ptr<proto::CompositorMessage> proto); | 185 void SendMessageProto(std::unique_ptr<proto::CompositorMessage> proto); |
186 | 186 |
187 // called on main thread. | 187 // called on main thread. |
188 void HandleProto(const proto::CompositorMessageToImpl& proto); | 188 void HandleProto(const proto::CompositorMessageToImpl& proto); |
189 void DidCompleteSwapBuffersOnMain(); | 189 void DidCompleteSwapBuffersOnMain(); |
| 190 void DidCommitAndDrawFrameOnMain(); |
190 void DidLoseOutputSurfaceOnMain(); | 191 void DidLoseOutputSurfaceOnMain(); |
191 void RequestNewOutputSurfaceOnMain(); | 192 void RequestNewOutputSurfaceOnMain(); |
192 void DidInitializeOutputSurfaceOnMain( | 193 void DidInitializeOutputSurfaceOnMain( |
193 bool success, | 194 bool success, |
194 const RendererCapabilities& capabilities); | 195 const RendererCapabilities& capabilities); |
195 void SendMessageProtoOnMain(std::unique_ptr<proto::CompositorMessage> proto); | 196 void SendMessageProtoOnMain(std::unique_ptr<proto::CompositorMessage> proto); |
196 void PostSetNeedsRedrawToImpl(const gfx::Rect& damaged_rect); | 197 void PostSetNeedsRedrawToImpl(const gfx::Rect& damaged_rect); |
197 | 198 |
198 void InitializeImplOnImpl(CompletionEvent* completion, | 199 void InitializeImplOnImpl(CompletionEvent* completion, |
199 LayerTreeHost* layer_tree_host); | 200 LayerTreeHost* layer_tree_host); |
(...skipping 14 matching lines...) Expand all Loading... |
214 CompositorThreadOnly compositor_thread_vars_unsafe_; | 215 CompositorThreadOnly compositor_thread_vars_unsafe_; |
215 | 216 |
216 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 217 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
217 | 218 |
218 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); | 219 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); |
219 }; | 220 }; |
220 | 221 |
221 } // namespace cc | 222 } // namespace cc |
222 | 223 |
223 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 224 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
OLD | NEW |