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

Unified Diff: webrtc/modules/audio_processing/echo_cancellation_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/echo_cancellation_impl.h
diff --git a/webrtc/modules/audio_processing/echo_cancellation_impl.h b/webrtc/modules/audio_processing/echo_cancellation_impl.h
index 1389399da3a457adba868e84e0eb4651af5c1dd7..6903ea639f47df91a2bd9b01a7fe25f575ecd63f 100644
--- a/webrtc/modules/audio_processing/echo_cancellation_impl.h
+++ b/webrtc/modules/audio_processing/echo_cancellation_impl.h
@@ -12,6 +12,7 @@
#define WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_
#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"
@@ -43,7 +44,8 @@ class EchoCancellationImpl : public EchoCancellation,
public ProcessingComponent {
public:
EchoCancellationImpl(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.
virtual ~EchoCancellationImpl();
int ProcessRenderAudio(const AudioBuffer* audio);
@@ -101,6 +103,8 @@ class EchoCancellationImpl : public EchoCancellation,
const AudioProcessing* apm_;
CriticalSectionWrapper* crit_;
+ const rtc::ThreadChecker* const render_thread_checker_;
+
bool drift_compensation_enabled_;
bool metrics_enabled_;
SuppressionLevel suppression_level_;

Powered by Google App Engine
This is Rietveld 408576698