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_impl.h" | 5 #include "cc/trees/remote_channel_impl.h" |
6 | 6 |
7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "cc/animation/animation_events.h" | 9 #include "cc/animation/animation_events.h" |
10 #include "cc/proto/compositor_message.pb.h" | 10 #include "cc/proto/compositor_message.pb.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 } | 171 } |
172 | 172 |
173 void RemoteChannelImpl::SetVisible(bool visible) { | 173 void RemoteChannelImpl::SetVisible(bool visible) { |
174 DCHECK(task_runner_provider_->IsMainThread()); | 174 DCHECK(task_runner_provider_->IsMainThread()); |
175 | 175 |
176 ImplThreadTaskRunner()->PostTask( | 176 ImplThreadTaskRunner()->PostTask( |
177 FROM_HERE, | 177 FROM_HERE, |
178 base::Bind(&ProxyImpl::SetVisibleOnImpl, proxy_impl_weak_ptr_, visible)); | 178 base::Bind(&ProxyImpl::SetVisibleOnImpl, proxy_impl_weak_ptr_, visible)); |
179 } | 179 } |
180 | 180 |
181 void RemoteChannelImpl::SetThrottleFrameProduction(bool throttle) { | |
182 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; | |
183 } | |
184 | |
185 const RendererCapabilities& RemoteChannelImpl::GetRendererCapabilities() const { | 181 const RendererCapabilities& RemoteChannelImpl::GetRendererCapabilities() const { |
186 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; | 182 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; |
187 return main().renderer_capabilities; | 183 return main().renderer_capabilities; |
188 } | 184 } |
189 | 185 |
190 void RemoteChannelImpl::SetNeedsAnimate() { | 186 void RemoteChannelImpl::SetNeedsAnimate() { |
191 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; | 187 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; |
192 } | 188 } |
193 | 189 |
194 void RemoteChannelImpl::SetNeedsUpdateLayers() { | 190 void RemoteChannelImpl::SetNeedsUpdateLayers() { |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 | 481 |
486 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( | 482 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( |
487 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) | 483 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) |
488 : proxy_impl(nullptr), | 484 : proxy_impl(nullptr), |
489 proxy_impl_weak_factory(nullptr), | 485 proxy_impl_weak_factory(nullptr), |
490 remote_channel_weak_ptr(remote_channel_weak_ptr) {} | 486 remote_channel_weak_ptr(remote_channel_weak_ptr) {} |
491 | 487 |
492 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} | 488 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} |
493 | 489 |
494 } // namespace cc | 490 } // namespace cc |
OLD | NEW |