| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 to_impl_proto->set_message_type( | 93 to_impl_proto->set_message_type( |
| 94 proto::CompositorMessageToImpl::SET_DEFER_COMMITS); | 94 proto::CompositorMessageToImpl::SET_DEFER_COMMITS); |
| 95 proto::SetDeferCommits* defer_commits_message = | 95 proto::SetDeferCommits* defer_commits_message = |
| 96 to_impl_proto->mutable_defer_commits_message(); | 96 to_impl_proto->mutable_defer_commits_message(); |
| 97 defer_commits_message->set_defer_commits(defer_commits); | 97 defer_commits_message->set_defer_commits(defer_commits); |
| 98 | 98 |
| 99 VLOG(1) << "Sending defer commits: " << defer_commits << " to client."; | 99 VLOG(1) << "Sending defer commits: " << defer_commits << " to client."; |
| 100 SendMessageProto(proto); | 100 SendMessageProto(proto); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void RemoteChannelMain::FinishAllRenderingOnImpl(CompletionEvent* completion) { | |
| 104 completion->Signal(); | |
| 105 } | |
| 106 | |
| 107 void RemoteChannelMain::SetVisibleOnImpl(bool visible) { | 103 void RemoteChannelMain::SetVisibleOnImpl(bool visible) { |
| 108 NOTIMPLEMENTED() << "Visibility is not controlled by the server"; | 104 NOTIMPLEMENTED() << "Visibility is not controlled by the server"; |
| 109 } | 105 } |
| 110 | 106 |
| 111 void RemoteChannelMain::ReleaseOutputSurfaceOnImpl( | 107 void RemoteChannelMain::ReleaseOutputSurfaceOnImpl( |
| 112 CompletionEvent* completion) { | 108 CompletionEvent* completion) { |
| 113 NOTREACHED() << "Should not be called on the server LayerTreeHost"; | 109 NOTREACHED() << "Should not be called on the server LayerTreeHost"; |
| 114 completion->Signal(); | 110 completion->Signal(); |
| 115 } | 111 } |
| 116 | 112 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 292 |
| 297 void RemoteChannelMain::DidCompleteSwapBuffers() { | 293 void RemoteChannelMain::DidCompleteSwapBuffers() { |
| 298 proxy_main_->DidCompleteSwapBuffers(); | 294 proxy_main_->DidCompleteSwapBuffers(); |
| 299 } | 295 } |
| 300 | 296 |
| 301 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { | 297 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { |
| 302 return task_runner_provider_->MainThreadTaskRunner(); | 298 return task_runner_provider_->MainThreadTaskRunner(); |
| 303 } | 299 } |
| 304 | 300 |
| 305 } // namespace cc | 301 } // namespace cc |
| OLD | NEW |