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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 DCHECK(proto->has_to_main()); | 56 DCHECK(proto->has_to_main()); |
57 | 57 |
58 HandleProto(proto->to_main()); | 58 HandleProto(proto->to_main()); |
59 } | 59 } |
60 | 60 |
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::InitializeCompositorFrameSinkOnImpl( |
67 OutputSurface* output_surface) { | 67 CompositorFrameSink*) { |
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( | 71 void RemoteChannelMain::InitializeMutatorOnImpl( |
72 std::unique_ptr<LayerTreeMutator> mutator) { | 72 std::unique_ptr<LayerTreeMutator> mutator) { |
73 // TODO(vollick): add support for CompositorWorker. | 73 // TODO(vollick): add support for CompositorWorker. |
74 NOTIMPLEMENTED(); | 74 NOTIMPLEMENTED(); |
75 } | 75 } |
76 | 76 |
77 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { | 77 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { |
(...skipping 14 matching lines...) Expand all Loading... |
92 defer_commits_message->set_defer_commits(defer_commits); | 92 defer_commits_message->set_defer_commits(defer_commits); |
93 | 93 |
94 VLOG(1) << "Sending defer commits: " << defer_commits << " to client."; | 94 VLOG(1) << "Sending defer commits: " << defer_commits << " to client."; |
95 SendMessageProto(proto); | 95 SendMessageProto(proto); |
96 } | 96 } |
97 | 97 |
98 void RemoteChannelMain::SetVisibleOnImpl(bool visible) { | 98 void RemoteChannelMain::SetVisibleOnImpl(bool visible) { |
99 NOTIMPLEMENTED() << "Visibility is not controlled by the server"; | 99 NOTIMPLEMENTED() << "Visibility is not controlled by the server"; |
100 } | 100 } |
101 | 101 |
102 void RemoteChannelMain::ReleaseOutputSurfaceOnImpl( | 102 void RemoteChannelMain::ReleaseCompositorFrameSinkOnImpl( |
103 CompletionEvent* completion) { | 103 CompletionEvent* completion) { |
104 NOTREACHED() << "Should not be called on the server LayerTreeHost"; | 104 NOTREACHED() << "Should not be called on the server LayerTreeHost"; |
105 completion->Signal(); | 105 completion->Signal(); |
106 } | 106 } |
107 | 107 |
108 void RemoteChannelMain::MainFrameWillHappenOnImplForTesting( | 108 void RemoteChannelMain::MainFrameWillHappenOnImplForTesting( |
109 CompletionEvent* completion, | 109 CompletionEvent* completion, |
110 bool* main_frame_will_happen) { | 110 bool* main_frame_will_happen) { |
111 // For the LayerTreeTests in remote mode, LayerTreeTest directly calls | 111 // For the LayerTreeTests in remote mode, LayerTreeTest directly calls |
112 // RemoteChannelImpl::MainFrameWillHappenForTesting and avoids adding a | 112 // RemoteChannelImpl::MainFrameWillHappenForTesting and avoids adding a |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 void RemoteChannelMain::DidCompleteSwapBuffers() { | 271 void RemoteChannelMain::DidCompleteSwapBuffers() { |
272 proxy_main_->DidCompleteSwapBuffers(); | 272 proxy_main_->DidCompleteSwapBuffers(); |
273 } | 273 } |
274 | 274 |
275 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { | 275 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { |
276 return task_runner_provider_->MainThreadTaskRunner(); | 276 return task_runner_provider_->MainThreadTaskRunner(); |
277 } | 277 } |
278 | 278 |
279 } // namespace cc | 279 } // namespace cc |
OLD | NEW |