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 #include "cc/trees/remote_channel_main.h" | 5 #include "cc/trees/remote_channel_main.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "cc/proto/base_conversions.h" | 10 #include "cc/proto/base_conversions.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void RemoteChannelMain::UpdateTopControlsStateOnImpl( | 61 void RemoteChannelMain::UpdateTopControlsStateOnImpl( |
62 TopControlsState constraints, | 62 TopControlsState constraints, |
63 TopControlsState current, | 63 TopControlsState current, |
64 bool animate) {} | 64 bool animate) {} |
65 | 65 |
66 void RemoteChannelMain::InitializeOutputSurfaceOnImpl( | 66 void RemoteChannelMain::InitializeOutputSurfaceOnImpl( |
67 OutputSurface* output_surface) { | 67 OutputSurface* output_surface) { |
68 NOTREACHED() << "Should not be called on the server LayerTreeHost"; | 68 NOTREACHED() << "Should not be called on the server LayerTreeHost"; |
69 } | 69 } |
70 | 70 |
| 71 void RemoteChannelMain::InitializeMutatorOnImpl( |
| 72 std::unique_ptr<LayerTreeMutator> mutator) { |
| 73 // TODO(vollick): add support for CompositorWorker. |
| 74 NOTIMPLEMENTED(); |
| 75 } |
| 76 |
71 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { | 77 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { |
72 proto::CompositorMessage proto; | 78 proto::CompositorMessage proto; |
73 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl(); | 79 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl(); |
74 to_impl_proto->set_message_type( | 80 to_impl_proto->set_message_type( |
75 proto::CompositorMessageToImpl::MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL); | 81 proto::CompositorMessageToImpl::MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL); |
76 | 82 |
77 SendMessageProto(proto); | 83 SendMessageProto(proto); |
78 } | 84 } |
79 | 85 |
80 void RemoteChannelMain::SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} | 86 void RemoteChannelMain::SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 289 |
284 void RemoteChannelMain::DidCompleteSwapBuffers() { | 290 void RemoteChannelMain::DidCompleteSwapBuffers() { |
285 proxy_main_->DidCompleteSwapBuffers(); | 291 proxy_main_->DidCompleteSwapBuffers(); |
286 } | 292 } |
287 | 293 |
288 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { | 294 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { |
289 return task_runner_provider_->MainThreadTaskRunner(); | 295 return task_runner_provider_->MainThreadTaskRunner(); |
290 } | 296 } |
291 | 297 |
292 } // namespace cc | 298 } // namespace cc |
OLD | NEW |