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

Unified Diff: media/base/android/media_codec_loop.cc

Issue 2491613004: Make base::Timer sequence-friendly. (Closed)
Patch Set: rebase on r464476 Created 3 years, 8 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
Index: media/base/android/media_codec_loop.cc
diff --git a/media/base/android/media_codec_loop.cc b/media/base/android/media_codec_loop.cc
index cf470480650d9cd24a1dbf287b34ff804aea07e7..e907b2ce8ea6c937e484e1032d41d845f34c6f9c 100644
--- a/media/base/android/media_codec_loop.cc
+++ b/media/base/android/media_codec_loop.cc
@@ -38,15 +38,15 @@ MediaCodecLoop::MediaCodecLoop(
int sdk_int,
Client* client,
std::unique_ptr<MediaCodecBridge> media_codec,
- scoped_refptr<base::SingleThreadTaskRunner> task_runner)
+ scoped_refptr<base::SingleThreadTaskRunner> timer_task_runner)
: state_(STATE_READY),
client_(client),
media_codec_(std::move(media_codec)),
pending_input_buf_index_(kInvalidBufferIndex),
sdk_int_(sdk_int),
weak_factory_(this) {
- if (task_runner)
- io_timer_.SetTaskRunner(task_runner);
+ if (timer_task_runner)
+ io_timer_.SetTaskRunner(timer_task_runner);
// TODO(liberato): should this DCHECK?
if (media_codec_ == nullptr)
SetState(STATE_ERROR);

Powered by Google App Engine
This is Rietveld 408576698