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

Side by Side Diff: chrome/renderer/media/cast_rtp_stream.cc

Issue 185403020: Make VEA client of command buffer; move sync. IPC to VDA/VEA::Initialize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 85629196 fischman@ comments. Created 6 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/renderer/media/cast_rtp_stream.h" 5 #include "chrome/renderer/media/cast_rtp_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/renderer/media/cast_session.h" 10 #include "chrome/renderer/media/cast_session.h"
11 #include "chrome/renderer/media/cast_udp_transport.h" 11 #include "chrome/renderer/media/cast_udp_transport.h"
12 #include "content/public/renderer/media_stream_audio_sink.h" 12 #include "content/public/renderer/media_stream_audio_sink.h"
13 #include "content/public/renderer/media_stream_video_sink.h" 13 #include "content/public/renderer/media_stream_video_sink.h"
14 #include "media/audio/audio_parameters.h" 14 #include "media/audio/audio_parameters.h"
15 #include "media/base/audio_bus.h" 15 #include "media/base/audio_bus.h"
16 #include "media/base/audio_fifo.h" 16 #include "media/base/audio_fifo.h"
17 #include "media/base/bind_to_current_loop.h" 17 #include "media/base/bind_to_current_loop.h"
18 #include "media/base/multi_channel_resampler.h" 18 #include "media/base/multi_channel_resampler.h"
19 #include "media/base/video_frame.h"
19 #include "media/cast/cast_config.h" 20 #include "media/cast/cast_config.h"
20 #include "media/cast/cast_defines.h" 21 #include "media/cast/cast_defines.h"
21 #include "media/cast/cast_sender.h" 22 #include "media/cast/cast_sender.h"
22 #include "media/cast/transport/cast_transport_config.h" 23 #include "media/cast/transport/cast_transport_config.h"
23 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" 24 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
24 25
25 using media::cast::AudioSenderConfig; 26 using media::cast::AudioSenderConfig;
26 using media::cast::VideoSenderConfig; 27 using media::cast::VideoSenderConfig;
27 28
28 namespace { 29 namespace {
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } 416 }
416 417
417 bool CastRtpStream::IsAudio() const { 418 bool CastRtpStream::IsAudio() const {
418 return track_.source().type() == blink::WebMediaStreamSource::TypeAudio; 419 return track_.source().type() == blink::WebMediaStreamSource::TypeAudio;
419 } 420 }
420 421
421 void CastRtpStream::DidEncounterError(const std::string& message) { 422 void CastRtpStream::DidEncounterError(const std::string& message) {
422 error_callback_.Run(message); 423 error_callback_.Run(message);
423 Stop(); 424 Stop();
424 } 425 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698