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

Side by Side Diff: remoting/host/chromoting_host.cc

Issue 26921005: Add VP9 decode support to the remoting client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update libvpx/webm comment. Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « remoting/codec/video_encoder_vpx.cc ('k') | remoting/host/plugin/host_script_object.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "remoting/host/chromoting_host.h" 5 #include "remoting/host/chromoting_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 started_(false), 79 started_(false),
80 protocol_config_(protocol::CandidateSessionConfig::CreateDefault()), 80 protocol_config_(protocol::CandidateSessionConfig::CreateDefault()),
81 login_backoff_(&kDefaultBackoffPolicy), 81 login_backoff_(&kDefaultBackoffPolicy),
82 authenticating_client_(false), 82 authenticating_client_(false),
83 reject_authenticating_client_(false), 83 reject_authenticating_client_(false),
84 enable_curtaining_(false), 84 enable_curtaining_(false),
85 weak_factory_(this) { 85 weak_factory_(this) {
86 DCHECK(network_task_runner_->BelongsToCurrentThread()); 86 DCHECK(network_task_runner_->BelongsToCurrentThread());
87 DCHECK(signal_strategy); 87 DCHECK(signal_strategy);
88 88
89 // VP9 encode is not yet supported.
90 protocol::CandidateSessionConfig::DisableVideoCodec(
91 protocol_config_.get(), protocol::ChannelConfig::CODEC_VP9);
92
89 if (!desktop_environment_factory_->SupportsAudioCapture()) { 93 if (!desktop_environment_factory_->SupportsAudioCapture()) {
90 protocol::CandidateSessionConfig::DisableAudioChannel( 94 protocol::CandidateSessionConfig::DisableAudioChannel(
91 protocol_config_.get()); 95 protocol_config_.get());
92 } 96 }
93 } 97 }
94 98
95 ChromotingHost::~ChromotingHost() { 99 ChromotingHost::~ChromotingHost() {
96 DCHECK(CalledOnValidThread()); 100 DCHECK(CalledOnValidThread());
97 101
98 // Disconnect all of the clients. 102 // Disconnect all of the clients.
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 DCHECK(CalledOnValidThread()); 319 DCHECK(CalledOnValidThread());
316 320
317 while (!clients_.empty()) { 321 while (!clients_.empty()) {
318 size_t size = clients_.size(); 322 size_t size = clients_.size();
319 clients_.front()->DisconnectSession(); 323 clients_.front()->DisconnectSession();
320 CHECK_EQ(clients_.size(), size - 1); 324 CHECK_EQ(clients_.size(), size - 1);
321 } 325 }
322 } 326 }
323 327
324 } // namespace remoting 328 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/codec/video_encoder_vpx.cc ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698