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 "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "cc/proto/base_conversions.h" | 8 #include "cc/proto/base_conversions.h" |
9 #include "cc/proto/compositor_message.pb.h" | 9 #include "cc/proto/compositor_message.pb.h" |
10 #include "cc/proto/compositor_message_to_impl.pb.h" | 10 #include "cc/proto/compositor_message_to_impl.pb.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 void RemoteChannelMain::OnProtoReceived( | 48 void RemoteChannelMain::OnProtoReceived( |
49 scoped_ptr<proto::CompositorMessage> proto) { | 49 scoped_ptr<proto::CompositorMessage> proto) { |
50 DCHECK(task_runner_provider_->IsMainThread()); | 50 DCHECK(task_runner_provider_->IsMainThread()); |
51 DCHECK(proto->has_to_main()); | 51 DCHECK(proto->has_to_main()); |
52 | 52 |
53 HandleProto(proto->to_main()); | 53 HandleProto(proto->to_main()); |
54 } | 54 } |
55 | 55 |
56 void RemoteChannelMain::SetThrottleFrameProductionOnImpl(bool throttle) {} | |
57 | |
58 void RemoteChannelMain::UpdateTopControlsStateOnImpl( | 56 void RemoteChannelMain::UpdateTopControlsStateOnImpl( |
59 TopControlsState constraints, | 57 TopControlsState constraints, |
60 TopControlsState current, | 58 TopControlsState current, |
61 bool animate) {} | 59 bool animate) {} |
62 | 60 |
63 void RemoteChannelMain::InitializeOutputSurfaceOnImpl( | 61 void RemoteChannelMain::InitializeOutputSurfaceOnImpl( |
64 OutputSurface* output_surface) { | 62 OutputSurface* output_surface) { |
65 NOTREACHED() << "Should not be called on the server LayerTreeHost"; | 63 NOTREACHED() << "Should not be called on the server LayerTreeHost"; |
66 } | 64 } |
67 | 65 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 243 |
246 void RemoteChannelMain::DidCompleteSwapBuffers() { | 244 void RemoteChannelMain::DidCompleteSwapBuffers() { |
247 proxy_main_->DidCompleteSwapBuffers(); | 245 proxy_main_->DidCompleteSwapBuffers(); |
248 } | 246 } |
249 | 247 |
250 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { | 248 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { |
251 return task_runner_provider_->MainThreadTaskRunner(); | 249 return task_runner_provider_->MainThreadTaskRunner(); |
252 } | 250 } |
253 | 251 |
254 } // namespace cc | 252 } // namespace cc |
OLD | NEW |