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

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

Issue 2314933004: cc/blimp: Remove the LayerTreeSettings serialization. (Closed)
Patch Set: Created 4 years, 3 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/layer_tree_settings_unittest.cc ('k') | no next file » | 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 void RemoteChannelMain::SynchronouslyInitializeImpl( 226 void RemoteChannelMain::SynchronouslyInitializeImpl(
227 LayerTreeHost* layer_tree_host, 227 LayerTreeHost* layer_tree_host,
228 std::unique_ptr<BeginFrameSource> external_begin_frame_source) { 228 std::unique_ptr<BeginFrameSource> external_begin_frame_source) {
229 TRACE_EVENT0("cc.remote", "RemoteChannelMain::SynchronouslyInitializeImpl"); 229 TRACE_EVENT0("cc.remote", "RemoteChannelMain::SynchronouslyInitializeImpl");
230 DCHECK(!initialized_); 230 DCHECK(!initialized_);
231 231
232 proto::CompositorMessage proto; 232 proto::CompositorMessage proto;
233 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl(); 233 proto::CompositorMessageToImpl* to_impl_proto = proto.mutable_to_impl();
234 to_impl_proto->set_message_type( 234 to_impl_proto->set_message_type(
235 proto::CompositorMessageToImpl::INITIALIZE_IMPL); 235 proto::CompositorMessageToImpl::INITIALIZE_IMPL);
236 proto::InitializeImpl* initialize_impl_proto =
237 to_impl_proto->mutable_initialize_impl_message();
238 proto::LayerTreeSettings* settings_proto =
239 initialize_impl_proto->mutable_layer_tree_settings();
240 layer_tree_host->settings().ToProtobuf(settings_proto);
241 236
242 VLOG(1) << "Sending initialize message to client"; 237 VLOG(1) << "Sending initialize message to client";
243 SendMessageProto(proto); 238 SendMessageProto(proto);
244 initialized_ = true; 239 initialized_ = true;
245 } 240 }
246 241
247 void RemoteChannelMain::SynchronouslyCloseImpl() { 242 void RemoteChannelMain::SynchronouslyCloseImpl() {
248 TRACE_EVENT0("cc.remote", "RemoteChannelMain::SynchronouslyCloseImpl"); 243 TRACE_EVENT0("cc.remote", "RemoteChannelMain::SynchronouslyCloseImpl");
249 DCHECK(initialized_); 244 DCHECK(initialized_);
250 proto::CompositorMessage proto; 245 proto::CompositorMessage proto;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 287
293 void RemoteChannelMain::DidCompleteSwapBuffers() { 288 void RemoteChannelMain::DidCompleteSwapBuffers() {
294 proxy_main_->DidCompleteSwapBuffers(); 289 proxy_main_->DidCompleteSwapBuffers();
295 } 290 }
296 291
297 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const { 292 base::SingleThreadTaskRunner* RemoteChannelMain::MainThreadTaskRunner() const {
298 return task_runner_provider_->MainThreadTaskRunner(); 293 return task_runner_provider_->MainThreadTaskRunner();
299 } 294 }
300 295
301 } // namespace cc 296 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698