| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void SendMessageProto(scoped_ptr<proto::CompositorMessage> proto); | 189 void SendMessageProto(scoped_ptr<proto::CompositorMessage> proto); |
| 190 | 190 |
| 191 // called on main thread. | 191 // called on main thread. |
| 192 void HandleProto(const proto::CompositorMessageToImpl& proto); | 192 void HandleProto(const proto::CompositorMessageToImpl& proto); |
| 193 void DidLoseOutputSurfaceOnMain(); | 193 void DidLoseOutputSurfaceOnMain(); |
| 194 void RequestNewOutputSurfaceOnMain(); | 194 void RequestNewOutputSurfaceOnMain(); |
| 195 void DidInitializeOutputSurfaceOnMain( | 195 void DidInitializeOutputSurfaceOnMain( |
| 196 bool success, | 196 bool success, |
| 197 const RendererCapabilities& capabilities); | 197 const RendererCapabilities& capabilities); |
| 198 void SendMessageProtoOnMain(scoped_ptr<proto::CompositorMessage> proto); | 198 void SendMessageProtoOnMain(scoped_ptr<proto::CompositorMessage> proto); |
| 199 void PostSetNeedsRedrawToImpl(const gfx::Rect& damaged_rect); |
| 199 | 200 |
| 200 void InitializeImplOnImpl(CompletionEvent* completion, | 201 void InitializeImplOnImpl(CompletionEvent* completion, |
| 201 LayerTreeHost* layer_tree_host); | 202 LayerTreeHost* layer_tree_host); |
| 202 void ShutdownImplOnImpl(CompletionEvent* completion); | 203 void ShutdownImplOnImpl(CompletionEvent* completion); |
| 203 | 204 |
| 204 MainThreadOnly& main(); | 205 MainThreadOnly& main(); |
| 205 const MainThreadOnly& main() const; | 206 const MainThreadOnly& main() const; |
| 206 CompositorThreadOnly& impl(); | 207 CompositorThreadOnly& impl(); |
| 207 const CompositorThreadOnly& impl() const; | 208 const CompositorThreadOnly& impl() const; |
| 208 | 209 |
| 209 base::SingleThreadTaskRunner* MainThreadTaskRunner() const; | 210 base::SingleThreadTaskRunner* MainThreadTaskRunner() const; |
| 210 base::SingleThreadTaskRunner* ImplThreadTaskRunner() const; | 211 base::SingleThreadTaskRunner* ImplThreadTaskRunner() const; |
| 211 | 212 |
| 212 TaskRunnerProvider* task_runner_provider_; | 213 TaskRunnerProvider* task_runner_provider_; |
| 213 | 214 |
| 214 // use accessors instead of these variables directly | 215 // use accessors instead of these variables directly |
| 215 MainThreadOnly main_thread_vars_unsafe_; | 216 MainThreadOnly main_thread_vars_unsafe_; |
| 216 CompositorThreadOnly compositor_thread_vars_unsafe_; | 217 CompositorThreadOnly compositor_thread_vars_unsafe_; |
| 217 | 218 |
| 218 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 219 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
| 219 | 220 |
| 220 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); | 221 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 } // namespace cc | 224 } // namespace cc |
| 224 | 225 |
| 225 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 226 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
| OLD | NEW |