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

Unified Diff: media/base/run_all_perftests.cc

Issue 2710133003: Replace FFmpegDemuxer thread per element with base::TaskScheduler. (Closed)
Patch Set: Use base::TaskScheduler. Created 3 years, 10 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 | « no previous file | media/filters/blocking_url_protocol.h » ('j') | media/filters/ffmpeg_demuxer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/run_all_perftests.cc
diff --git a/media/base/run_all_perftests.cc b/media/base/run_all_perftests.cc
index 54ce21b40af118a62d06948628b422c6767c1936..f41edc5f241f0ad88a50148bca2564a1d447a504 100644
--- a/media/base/run_all_perftests.cc
+++ b/media/base/run_all_perftests.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/bind.h"
+#include "base/task_scheduler/task_scheduler.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "build/build_config.h"
@@ -24,6 +25,8 @@ void TestSuiteNoAtExit::Initialize() {
// Run this here instead of main() to ensure an AtExitManager is already
// present.
media::InitializeMediaLibrary();
+
+ base::TaskScheduler::CreateAndSetSimpleTaskScheduler(1);
gab 2017/02/23 21:37:09 For tests see base::test::ScopedTaskScheduler, als
DaleCurtis 2017/02/23 23:07:06 Thanks! Switched, though I think this omits a bit
gab 2017/02/24 01:09:05 You can use ScopedAsyncTaskScheduler if you want t
}
int main(int argc, char** argv) {
« no previous file with comments | « no previous file | media/filters/blocking_url_protocol.h » ('j') | media/filters/ffmpeg_demuxer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698