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

Unified Diff: webrtc/modules/audio_processing/gain_control_impl.h

Issue 1422013002: Preparational work for an upcoming addition of a threadchecking scheme for APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@bundling_of_state_CL
Patch Set: Changes in response to user comments Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/gain_control_impl.h
diff --git a/webrtc/modules/audio_processing/gain_control_impl.h b/webrtc/modules/audio_processing/gain_control_impl.h
index d16bb3b6610d71649666033ff1dd2385da6dc16c..d3eab9d9c0b445523c458e665b448ad2471055b6 100644
--- a/webrtc/modules/audio_processing/gain_control_impl.h
+++ b/webrtc/modules/audio_processing/gain_control_impl.h
@@ -14,6 +14,7 @@
#include <vector>
#include "webrtc/base/scoped_ptr.h"
+#include "webrtc/base/thread_checker.h"
#include "webrtc/common_audio/swap_queue.h"
#include "webrtc/modules/audio_processing/include/audio_processing.h"
#include "webrtc/modules/audio_processing/processing_component.h"
@@ -45,7 +46,9 @@ class GainControlImpl : public GainControl,
public ProcessingComponent {
public:
GainControlImpl(const AudioProcessing* apm,
- CriticalSectionWrapper* crit);
+ CriticalSectionWrapper* crit,
+ rtc::ThreadChecker* render_thread_checker,
hlundin-webrtc 2015/11/05 13:08:55 const rtc::ThreadChecker*
peah-webrtc 2015/11/06 07:31:14 Done.
+ rtc::ThreadChecker* capture_thread_checker);
hlundin-webrtc 2015/11/05 13:08:55 const rtc::ThreadChecker*
peah-webrtc 2015/11/06 07:31:14 Done.
virtual ~GainControlImpl();
int ProcessRenderAudio(AudioBuffer* audio);
@@ -97,6 +100,8 @@ class GainControlImpl : public GainControl,
const AudioProcessing* apm_;
CriticalSectionWrapper* crit_;
+ const rtc::ThreadChecker* const render_thread_checker_;
+ const rtc::ThreadChecker* const capture_thread_checker_;
Mode mode_;
int minimum_capture_level_;
int maximum_capture_level_;

Powered by Google App Engine
This is Rietveld 408576698