Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: cc/trees/remote_channel_impl.cc

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include WebCompositorMutatorClient from WebLayerTreeView to allow unique_ptr usage. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/remote_channel_impl.h ('k') | cc/trees/remote_channel_main.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/trees/remote_channel_impl.h ('k') | cc/trees/remote_channel_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698