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

Side by Side Diff: cc/trees/remote_channel_main.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_main.h ('k') | cc/trees/single_thread_proxy.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_main.h" 5 #include "cc/trees/remote_channel_main.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/proto/base_conversions.h" 10 #include "cc/proto/base_conversions.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void RemoteChannelMain::UpdateTopControlsStateOnImpl( 61 void RemoteChannelMain::UpdateTopControlsStateOnImpl(
62 TopControlsState constraints, 62 TopControlsState constraints,
63 TopControlsState current, 63 TopControlsState current,
64 bool animate) {} 64 bool animate) {}
65 65
66 void RemoteChannelMain::InitializeOutputSurfaceOnImpl( 66 void RemoteChannelMain::InitializeOutputSurfaceOnImpl(
67 OutputSurface* output_surface) { 67 OutputSurface* output_surface) {
68 NOTREACHED() << "Should not be called on the server LayerTreeHost"; 68 NOTREACHED() << "Should not be called on the server LayerTreeHost";
69 } 69 }
70 70
71 void RemoteChannelMain::InitializeMutatorOnImpl(
72 std::unique_ptr<LayerTreeMutator> mutator) {
73 // TODO(vollick): add support for CompositorWorker.
74 NOTIMPLEMENTED();
75 }
76
71 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() { 77 void RemoteChannelMain::MainThreadHasStoppedFlingingOnImpl() {
72 proto::CompositorMessage proto; 78 proto::CompositorMessage proto;
73 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl(); 79 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl();
74 to_impl_proto->set_message_type( 80 to_impl_proto->set_message_type(
75 proto::CompositorMessageToImpl::MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL); 81 proto::CompositorMessageToImpl::MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL);
76 82
77 SendMessageProto(proto); 83 SendMessageProto(proto);
78 } 84 }
79 85
80 void RemoteChannelMain::SetInputThrottledUntilCommitOnImpl(bool is_throttled) {} 86 void RemoteChannelMain::SetInputThrottledUntilCommitOnImpl(bool is_throttled) {}
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 289
284 void RemoteChannelMain::DidCompleteSwapBuffers() { 290 void RemoteChannelMain::DidCompleteSwapBuffers() {
285 proxy_main_->DidCompleteSwapBuffers(); 291 proxy_main_->DidCompleteSwapBuffers();
286 } 292 }
287 293
288 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { 294 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const {
289 return task_runner_provider_->MainThreadTaskRunner(); 295 return task_runner_provider_->MainThreadTaskRunner();
290 } 296 }
291 297
292 } // namespace cc 298 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/remote_channel_main.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698