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

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: Fixed the conditional thread-checking scheme" 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 25b16c0f68ec6d92a29935bcc8bc2dc4fffb2b4d..0584b034ef3f9ddb6a696c65cc7d7985fa435e57 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"
@@ -27,7 +28,9 @@ class GainControlImpl : public GainControl,
public ProcessingComponent {
public:
GainControlImpl(const AudioProcessing* apm,
- CriticalSectionWrapper* crit);
+ CriticalSectionWrapper* crit,
+ const rtc::ThreadChecker* render_thread_checker,
+ const rtc::ThreadChecker* capture_thread_checker);
virtual ~GainControlImpl();
int ProcessRenderAudio(AudioBuffer* audio);
@@ -73,6 +76,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