| 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(LayerTreeMutator* mutator) { |
| 69 // TODO(vollick): add support for CompositorWorker. |
| 70 } |
| 71 |
| 68 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { | 72 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { |
| 69 proto::CompositorMessage proto; | 73 proto::CompositorMessage proto; |
| 70 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl(); | 74 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl(); |
| 71 to_impl_proto->set_message_type( | 75 to_impl_proto->set_message_type( |
| 72 proto::CompositorMessageToImpl::MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL); | 76 proto::CompositorMessageToImpl::MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL); |
| 73 | 77 |
| 74 SendMessageProto(proto); | 78 SendMessageProto(proto); |
| 75 } | 79 } |
| 76 | 80 |
| 77 void RemoteChannelMain::SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} | 81 void RemoteChannelMain::SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 259 |
| 256 void RemoteChannelMain::DidCompleteSwapBuffers() { | 260 void RemoteChannelMain::DidCompleteSwapBuffers() { |
| 257 proxy_main_->DidCompleteSwapBuffers(); | 261 proxy_main_->DidCompleteSwapBuffers(); |
| 258 } | 262 } |
| 259 | 263 |
| 260 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { | 264 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { |
| 261 return task_runner_provider_->MainThreadTaskRunner(); | 265 return task_runner_provider_->MainThreadTaskRunner(); |
| 262 } | 266 } |
| 263 | 267 |
| 264 } // namespace cc | 268 } // namespace cc |
| OLD | NEW |