| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 } | 268 } |
| 269 | 269 |
| 270 void RemoteChannelImpl::SetMutator(std::unique_ptr<LayerTreeMutator> mutator) { | 270 void RemoteChannelImpl::SetMutator(std::unique_ptr<LayerTreeMutator> mutator) { |
| 271 // TODO(vollick): add support for compositor worker. | 271 // TODO(vollick): add support for compositor worker. |
| 272 } | 272 } |
| 273 | 273 |
| 274 bool RemoteChannelImpl::SupportsImplScrolling() const { | 274 bool RemoteChannelImpl::SupportsImplScrolling() const { |
| 275 return true; | 275 return true; |
| 276 } | 276 } |
| 277 | 277 |
| 278 void RemoteChannelImpl::UpdateTopControlsState(TopControlsState constraints, | 278 void RemoteChannelImpl::UpdateTopControlsState(BrowserControlsState constraints, |
| 279 TopControlsState current, | 279 BrowserControlsState current, |
| 280 bool animate) { | 280 bool animate) { |
| 281 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; | 281 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; |
| 282 } | 282 } |
| 283 | 283 |
| 284 bool RemoteChannelImpl::MainFrameWillHappenForTesting() { | 284 bool RemoteChannelImpl::MainFrameWillHappenForTesting() { |
| 285 DCHECK(task_runner_provider_->IsMainThread()); | 285 DCHECK(task_runner_provider_->IsMainThread()); |
| 286 bool main_frame_will_happen; | 286 bool main_frame_will_happen; |
| 287 { | 287 { |
| 288 CompletionEvent completion; | 288 CompletionEvent completion; |
| 289 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); | 289 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 510 |
| 511 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( | 511 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( |
| 512 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) | 512 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) |
| 513 : proxy_impl(nullptr), | 513 : proxy_impl(nullptr), |
| 514 proxy_impl_weak_factory(nullptr), | 514 proxy_impl_weak_factory(nullptr), |
| 515 remote_channel_weak_ptr(remote_channel_weak_ptr) {} | 515 remote_channel_weak_ptr(remote_channel_weak_ptr) {} |
| 516 | 516 |
| 517 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} | 517 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} |
| 518 | 518 |
| 519 } // namespace cc | 519 } // namespace cc |
| OLD | NEW |