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

Unified Diff: media/base/media.cc

Issue 2693003003: Initialize libyuv CPU features in a thread safe manner. (Closed)
Patch Set: Fix typo. 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media.cc
diff --git a/media/base/media.cc b/media/base/media.cc
index 8ad82ee2babf74eaeb363a93e613a83fce35103b..77720b44a0a24255d10808980b8cbe6e1ebd667c 100644
--- a/media/base/media.cc
+++ b/media/base/media.cc
@@ -9,6 +9,7 @@
#include "base/metrics/field_trial.h"
#include "base/trace_event/trace_event.h"
#include "media/base/media_switches.h"
+#include "third_party/libyuv/include/libyuv.h"
#if defined(OS_ANDROID)
#include "base/android/build_info.h"
@@ -28,6 +29,8 @@ class MediaInitializer {
TRACE_EVENT_WARMUP_CATEGORY("audio");
TRACE_EVENT_WARMUP_CATEGORY("media");
+ libyuv::InitCpuFlags();
+
#if !defined(MEDIA_DISABLE_FFMPEG)
// Initialize CPU flags outside of the sandbox as this may query /proc for
// details on the current CPU for NEON, VFP, etc optimizations.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698