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

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: Add big fat TODOs in scheduler code to implement proper idle task scheduling and ensure GC is runni… Created 4 years, 7 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
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::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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 542
539 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( 543 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly(
540 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) 544 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr)
541 : proxy_impl(nullptr), 545 : proxy_impl(nullptr),
542 proxy_impl_weak_factory(nullptr), 546 proxy_impl_weak_factory(nullptr),
543 remote_channel_weak_ptr(remote_channel_weak_ptr) {} 547 remote_channel_weak_ptr(remote_channel_weak_ptr) {}
544 548
545 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} 549 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {}
546 550
547 } // namespace cc 551 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698