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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 void RemoteChannelMain::UpdateTopControlsStateOnImpl( | 58 void RemoteChannelMain::UpdateTopControlsStateOnImpl( |
59 TopControlsState constraints, | 59 TopControlsState constraints, |
60 TopControlsState current, | 60 TopControlsState current, |
61 bool animate) {} | 61 bool animate) {} |
62 | 62 |
63 void RemoteChannelMain::InitializeOutputSurfaceOnImpl( | 63 void RemoteChannelMain::InitializeOutputSurfaceOnImpl( |
64 OutputSurface* output_surface) { | 64 OutputSurface* output_surface) { |
65 NOTREACHED() << "Should not be called on the server LayerTreeHost"; | 65 NOTREACHED() << "Should not be called on the server LayerTreeHost"; |
66 } | 66 } |
67 | 67 |
68 void RemoteChannelMain::InitializeMutatorOnImpl( | |
69 std::unique_ptr<LayerTreeMutator> mutator) { | |
70 // TODO(vollick): add support for CompositorWorker. | |
jbroman
2016/04/29 19:42:22
nit: Maybe also a NOTIMPLEMENTED(); here?
flackr
2016/05/03 22:24:54
Done.
| |
71 } | |
72 | |
68 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { | 73 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { |
69 proto::CompositorMessage proto; | 74 proto::CompositorMessage proto; |
70 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl(); | 75 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl(); |
71 to_impl_proto->set_message_type( | 76 to_impl_proto->set_message_type( |
72 proto::CompositorMessageToImpl::MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL); | 77 proto::CompositorMessageToImpl::MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL); |
73 | 78 |
74 SendMessageProto(proto); | 79 SendMessageProto(proto); |
75 } | 80 } |
76 | 81 |
77 void RemoteChannelMain::SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} | 82 void RemoteChannelMain::SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 | 260 |
256 void RemoteChannelMain::DidCompleteSwapBuffers() { | 261 void RemoteChannelMain::DidCompleteSwapBuffers() { |
257 proxy_main_->DidCompleteSwapBuffers(); | 262 proxy_main_->DidCompleteSwapBuffers(); |
258 } | 263 } |
259 | 264 |
260 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { | 265 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { |
261 return task_runner_provider_->MainThreadTaskRunner(); | 266 return task_runner_provider_->MainThreadTaskRunner(); |
262 } | 267 } |
263 | 268 |
264 } // namespace cc | 269 } // namespace cc |
OLD | NEW |