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

Unified Diff: media/audio/audio_debug_recording_helper.cc

Issue 2885173002: Make AudioDebugFileWriter create its own file worker thread. (Closed)
Patch Set: Remove useless include Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_debug_recording_helper.h ('k') | media/audio/audio_debug_recording_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_debug_recording_helper.cc
diff --git a/media/audio/audio_debug_recording_helper.cc b/media/audio/audio_debug_recording_helper.cc
index af006303619c0f2a4d94004cbd7be8cc837d2f88..a21f12cfbaf5b27fa3ce4bd76b29f97e326b3e99 100644
--- a/media/audio/audio_debug_recording_helper.cc
+++ b/media/audio/audio_debug_recording_helper.cc
@@ -15,12 +15,10 @@ namespace media {
AudioDebugRecordingHelper::AudioDebugRecordingHelper(
const AudioParameters& params,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
base::OnceClosure on_destruction_closure)
: params_(params),
recording_enabled_(0),
task_runner_(std::move(task_runner)),
- file_task_runner_(std::move(file_task_runner)),
on_destruction_closure_(std::move(on_destruction_closure)),
weak_factory_(this) {}
@@ -35,7 +33,7 @@ void AudioDebugRecordingHelper::EnableDebugRecording(
DCHECK(!debug_writer_);
DCHECK(!file_name.empty());
- debug_writer_ = CreateAudioDebugFileWriter(params_, file_task_runner_);
+ debug_writer_ = CreateAudioDebugFileWriter(params_);
debug_writer_->Start(
file_name.AddExtension(debug_writer_->GetFileNameExtension()));
@@ -93,9 +91,8 @@ void AudioDebugRecordingHelper::DoWrite(std::unique_ptr<media::AudioBus> data) {
std::unique_ptr<AudioDebugFileWriter>
AudioDebugRecordingHelper::CreateAudioDebugFileWriter(
- const AudioParameters& params,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) {
- return base::MakeUnique<AudioDebugFileWriter>(params, file_task_runner);
+ const AudioParameters& params) {
+ return base::MakeUnique<AudioDebugFileWriter>(params);
}
} // namespace media
« no previous file with comments | « media/audio/audio_debug_recording_helper.h ('k') | media/audio/audio_debug_recording_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698