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::UpdateTopControlsState(TopControlsState constraints, | 308 void RemoteChannelImpl::UpdateTopControlsState(TopControlsState constraints, |
305 TopControlsState current, | 309 TopControlsState current, |
306 bool animate) { | 310 bool animate) { |
307 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; | 311 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; |
308 } | 312 } |
309 | 313 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 | 543 |
540 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( | 544 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( |
541 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) | 545 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) |
542 : proxy_impl(nullptr), | 546 : proxy_impl(nullptr), |
543 proxy_impl_weak_factory(nullptr), | 547 proxy_impl_weak_factory(nullptr), |
544 remote_channel_weak_ptr(remote_channel_weak_ptr) {} | 548 remote_channel_weak_ptr(remote_channel_weak_ptr) {} |
545 | 549 |
546 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} | 550 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} |
547 | 551 |
548 } // namespace cc | 552 } // namespace cc |
OLD | NEW |