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

Side by Side Diff: content/renderer/media/media_stream_audio_processor.h

Issue 2038053002: Change audio render thread checking to use new AudioRendererSink::BelongsToRendererThread() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review fixes (dalecurtis@). Created 4 years, 6 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 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 friend class MediaStreamAudioProcessorTest; 117 friend class MediaStreamAudioProcessorTest;
118 118
119 FRIEND_TEST_ALL_PREFIXES(MediaStreamAudioProcessorTest, 119 FRIEND_TEST_ALL_PREFIXES(MediaStreamAudioProcessorTest,
120 GetAecDumpMessageFilter); 120 GetAecDumpMessageFilter);
121 121
122 // WebRtcPlayoutDataSource::Sink implementation. 122 // WebRtcPlayoutDataSource::Sink implementation.
123 void OnPlayoutData(media::AudioBus* audio_bus, 123 void OnPlayoutData(media::AudioBus* audio_bus,
124 int sample_rate, 124 int sample_rate,
125 int audio_delay_milliseconds) override; 125 int audio_delay_milliseconds) override;
126 void OnPlayoutDataSourceChanged() override; 126 void OnPlayoutDataSourceChanged() override;
127 void OnRenderThreadChanged() override;
127 128
128 // webrtc::AudioProcessorInterface implementation. 129 // webrtc::AudioProcessorInterface implementation.
129 // This method is called on the libjingle thread. 130 // This method is called on the libjingle thread.
130 void GetStats(AudioProcessorStats* stats) override; 131 void GetStats(AudioProcessorStats* stats) override;
131 132
132 // Helper to initialize the WebRtc AudioProcessing. 133 // Helper to initialize the WebRtc AudioProcessing.
133 void InitializeAudioProcessingModule( 134 void InitializeAudioProcessingModule(
134 const blink::WebMediaConstraints& constraints, 135 const blink::WebMediaConstraints& constraints,
135 const MediaStreamDevice::AudioDeviceParameters& input_params); 136 const MediaStreamDevice::AudioDeviceParameters& input_params);
136 137
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // Object for logging echo information when the AEC is enabled. Accessible by 208 // Object for logging echo information when the AEC is enabled. Accessible by
208 // the libjingle thread through GetStats(). 209 // the libjingle thread through GetStats().
209 std::unique_ptr<EchoInformation> echo_information_; 210 std::unique_ptr<EchoInformation> echo_information_;
210 211
211 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor); 212 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor);
212 }; 213 };
213 214
214 } // namespace content 215 } // namespace content
215 216
216 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 217 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698