| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 ImplThreadTaskRunner()->PostTask( | 289 ImplThreadTaskRunner()->PostTask( |
| 290 FROM_HERE, base::Bind(&RemoteChannelImpl::ShutdownImplOnImpl, | 290 FROM_HERE, base::Bind(&RemoteChannelImpl::ShutdownImplOnImpl, |
| 291 base::Unretained(this), &completion)); | 291 base::Unretained(this), &completion)); |
| 292 completion.Wait(); | 292 completion.Wait(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 main().started = false; | 295 main().started = false; |
| 296 main().remote_channel_weak_factory.InvalidateWeakPtrs(); | 296 main().remote_channel_weak_factory.InvalidateWeakPtrs(); |
| 297 } | 297 } |
| 298 | 298 |
| 299 void RemoteChannelImpl::SetMutator(LayerTreeMutator* mutator) { |
| 300 // TODO(vollick): add support for compositor worker. |
| 301 } |
| 302 |
| 299 bool RemoteChannelImpl::SupportsImplScrolling() const { | 303 bool RemoteChannelImpl::SupportsImplScrolling() const { |
| 300 return true; | 304 return true; |
| 301 } | 305 } |
| 302 | 306 |
| 303 void RemoteChannelImpl::SetChildrenNeedBeginFrames( | 307 void RemoteChannelImpl::SetChildrenNeedBeginFrames( |
| 304 bool children_need_begin_frames) { | 308 bool children_need_begin_frames) { |
| 305 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; | 309 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; |
| 306 } | 310 } |
| 307 | 311 |
| 308 void RemoteChannelImpl::SetAuthoritativeVSyncInterval( | 312 void RemoteChannelImpl::SetAuthoritativeVSyncInterval( |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 | 541 |
| 538 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( | 542 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( |
| 539 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) | 543 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) |
| 540 : proxy_impl(nullptr), | 544 : proxy_impl(nullptr), |
| 541 proxy_impl_weak_factory(nullptr), | 545 proxy_impl_weak_factory(nullptr), |
| 542 remote_channel_weak_ptr(remote_channel_weak_ptr) {} | 546 remote_channel_weak_ptr(remote_channel_weak_ptr) {} |
| 543 | 547 |
| 544 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} | 548 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} |
| 545 | 549 |
| 546 } // namespace cc | 550 } // namespace cc |
| OLD | NEW |