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

Side by Side Diff: content/renderer/media/webrtc_audio_device_impl.cc

Issue 1875463002: Remove unused fields from //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scythe-root
Patch Set: Reverting not really needed changes under //gpu. Created 4 years, 8 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
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 "content/renderer/media/webrtc_audio_device_impl.h" 5 #include "content/renderer/media/webrtc_audio_device_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/win/windows_version.h" 10 #include "base/win/windows_version.h"
11 #include "content/renderer/media/media_stream_audio_processor.h" 11 #include "content/renderer/media/media_stream_audio_processor.h"
12 #include "content/renderer/media/webrtc_audio_capturer.h" 12 #include "content/renderer/media/webrtc_audio_capturer.h"
13 #include "content/renderer/media/webrtc_audio_renderer.h" 13 #include "content/renderer/media/webrtc_audio_renderer.h"
14 #include "content/renderer/render_thread_impl.h" 14 #include "content/renderer/render_thread_impl.h"
15 #include "media/audio/audio_parameters.h" 15 #include "media/audio/audio_parameters.h"
16 #include "media/audio/sample_rates.h" 16 #include "media/audio/sample_rates.h"
17 17
18 using media::AudioParameters; 18 using media::AudioParameters;
19 using media::ChannelLayout; 19 using media::ChannelLayout;
20 20
21 namespace content { 21 namespace content {
22 22
23 WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl() 23 WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()
24 : ref_count_(0), 24 : ref_count_(0),
25 audio_transport_callback_(NULL), 25 audio_transport_callback_(NULL),
26 output_delay_ms_(0), 26 output_delay_ms_(0),
27 initialized_(false), 27 initialized_(false),
28 playing_(false), 28 playing_(false),
29 recording_(false), 29 recording_(false) {
30 microphone_volume_(0) {
31 DVLOG(1) << "WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()"; 30 DVLOG(1) << "WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()";
32 // This object can be constructed on either the signaling thread or the main 31 // This object can be constructed on either the signaling thread or the main
33 // thread, so we need to detach these thread checkers here and have them 32 // thread, so we need to detach these thread checkers here and have them
34 // initialize automatically when the first methods are called. 33 // initialize automatically when the first methods are called.
35 signaling_thread_checker_.DetachFromThread(); 34 signaling_thread_checker_.DetachFromThread();
36 main_thread_checker_.DetachFromThread(); 35 main_thread_checker_.DetachFromThread();
37 36
38 worker_thread_checker_.DetachFromThread(); 37 worker_thread_checker_.DetachFromThread();
39 audio_renderer_thread_checker_.DetachFromThread(); 38 audio_renderer_thread_checker_.DetachFromThread();
40 } 39 }
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 480
482 *session_id = device_info.session_id; 481 *session_id = device_info.session_id;
483 *output_sample_rate = device_info.device.matched_output.sample_rate; 482 *output_sample_rate = device_info.device.matched_output.sample_rate;
484 *output_frames_per_buffer = 483 *output_frames_per_buffer =
485 device_info.device.matched_output.frames_per_buffer; 484 device_info.device.matched_output.frames_per_buffer;
486 485
487 return true; 486 return true;
488 } 487 }
489 488
490 } // namespace content 489 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_audio_device_impl.h ('k') | content/renderer/pepper/pepper_graphics_2d_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698