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

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

Issue 2320823003: cc/blimp: Remove Initialize and Close messages. (Closed)
Patch Set: format 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/test/test_hooks.h ('k') | cc/trees/remote_channel_main.cc » ('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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void RemoteChannelImpl::HandleProto( 67 void RemoteChannelImpl::HandleProto(
68 const proto::CompositorMessageToImpl& proto) { 68 const proto::CompositorMessageToImpl& proto) {
69 DCHECK(task_runner_provider_->IsMainThread()); 69 DCHECK(task_runner_provider_->IsMainThread());
70 DCHECK(proto.has_message_type()); 70 DCHECK(proto.has_message_type());
71 DCHECK(!main().waiting_for_output_surface_initialization); 71 DCHECK(!main().waiting_for_output_surface_initialization);
72 72
73 switch (proto.message_type()) { 73 switch (proto.message_type()) {
74 case proto::CompositorMessageToImpl::UNKNOWN: 74 case proto::CompositorMessageToImpl::UNKNOWN:
75 NOTIMPLEMENTED() << "Ignoring message of UNKNOWN type"; 75 NOTIMPLEMENTED() << "Ignoring message of UNKNOWN type";
76 break; 76 break;
77 case proto::CompositorMessageToImpl::INITIALIZE_IMPL:
78 NOTREACHED() << "Should be handled by the embedder";
79 break;
80 case proto::CompositorMessageToImpl::CLOSE_IMPL:
81 NOTREACHED() << "Should be handled by the embedder";
82 break;
83 case proto::CompositorMessageToImpl::
84 MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL:
85 ImplThreadTaskRunner()->PostTask(
86 FROM_HERE, base::Bind(&ProxyImpl::MainThreadHasStoppedFlingingOnImpl,
87 proxy_impl_weak_ptr_));
88 break;
89 case proto::CompositorMessageToImpl::SET_NEEDS_COMMIT: 77 case proto::CompositorMessageToImpl::SET_NEEDS_COMMIT:
90 VLOG(1) << "Received commit request from the engine."; 78 VLOG(1) << "Received commit request from the engine.";
91 ImplThreadTaskRunner()->PostTask( 79 ImplThreadTaskRunner()->PostTask(
92 FROM_HERE, 80 FROM_HERE,
93 base::Bind(&ProxyImpl::SetNeedsCommitOnImpl, proxy_impl_weak_ptr_)); 81 base::Bind(&ProxyImpl::SetNeedsCommitOnImpl, proxy_impl_weak_ptr_));
94 break; 82 break;
95 case proto::CompositorMessageToImpl::SET_DEFER_COMMITS: { 83 case proto::CompositorMessageToImpl::SET_DEFER_COMMITS: {
96 const proto::SetDeferCommits& defer_commits_message = 84 const proto::SetDeferCommits& defer_commits_message =
97 proto.defer_commits_message(); 85 proto.defer_commits_message();
98 bool defer_commits = defer_commits_message.defer_commits(); 86 bool defer_commits = defer_commits_message.defer_commits();
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 510
523 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( 511 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly(
524 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) 512 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr)
525 : proxy_impl(nullptr), 513 : proxy_impl(nullptr),
526 proxy_impl_weak_factory(nullptr), 514 proxy_impl_weak_factory(nullptr),
527 remote_channel_weak_ptr(remote_channel_weak_ptr) {} 515 remote_channel_weak_ptr(remote_channel_weak_ptr) {}
528 516
529 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} 517 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {}
530 518
531 } // namespace cc 519 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_hooks.h ('k') | cc/trees/remote_channel_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698