| 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/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "cc/animation/animation_events.h" | 10 #include "cc/animation/animation_events.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 ImplThreadTaskRunner()->PostTask( | 290 ImplThreadTaskRunner()->PostTask( |
| 291 FROM_HERE, base::Bind(&RemoteChannelImpl::ShutdownImplOnImpl, | 291 FROM_HERE, base::Bind(&RemoteChannelImpl::ShutdownImplOnImpl, |
| 292 base::Unretained(this), &completion)); | 292 base::Unretained(this), &completion)); |
| 293 completion.Wait(); | 293 completion.Wait(); |
| 294 } | 294 } |
| 295 | 295 |
| 296 main().started = false; | 296 main().started = false; |
| 297 main().remote_channel_weak_factory.InvalidateWeakPtrs(); | 297 main().remote_channel_weak_factory.InvalidateWeakPtrs(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 void RemoteChannelImpl::SetMutator(std::unique_ptr<LayerTreeMutator> mutator) { |
| 301 // TODO(vollick): add support for compositor worker. |
| 302 } |
| 303 |
| 300 bool RemoteChannelImpl::SupportsImplScrolling() const { | 304 bool RemoteChannelImpl::SupportsImplScrolling() const { |
| 301 return true; | 305 return true; |
| 302 } | 306 } |
| 303 | 307 |
| 304 void RemoteChannelImpl::SetAuthoritativeVSyncInterval( | 308 void RemoteChannelImpl::SetAuthoritativeVSyncInterval( |
| 305 const base::TimeDelta& interval) { | 309 const base::TimeDelta& interval) { |
| 306 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; | 310 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; |
| 307 } | 311 } |
| 308 | 312 |
| 309 void RemoteChannelImpl::UpdateTopControlsState(TopControlsState constraints, | 313 void RemoteChannelImpl::UpdateTopControlsState(TopControlsState constraints, |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 | 532 |
| 529 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( | 533 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( |
| 530 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) | 534 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) |
| 531 : proxy_impl(nullptr), | 535 : proxy_impl(nullptr), |
| 532 proxy_impl_weak_factory(nullptr), | 536 proxy_impl_weak_factory(nullptr), |
| 533 remote_channel_weak_ptr(remote_channel_weak_ptr) {} | 537 remote_channel_weak_ptr(remote_channel_weak_ptr) {} |
| 534 | 538 |
| 535 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} | 539 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} |
| 536 | 540 |
| 537 } // namespace cc | 541 } // namespace cc |
| OLD | NEW |