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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1153063002: Initialize AVFoundation explicitly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert change in webrtc content browsertest Created 5 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 | « no previous file | content/public/test/browser_test_base.cc » ('j') | content/public/test/browser_test_base.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 50d0d8260023e27e578585f37344b5151a9b4a86..dbd2732e1572b1f6fdea33f47fa674ea942fa3ab 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -90,6 +90,10 @@
#include "ui/gl/gl_surface.h"
#endif
+#if defined(OS_MACOSX)
+#include "media/base/mac/avfoundation_glue.h"
+#endif
+
#if defined(OS_MACOSX) && !defined(OS_IOS)
#include "base/memory/memory_pressure_monitor_mac.h"
#include "content/browser/bootstrap_sandbox_mac.h"
@@ -647,6 +651,11 @@ int BrowserMainLoop::PreCreateThreads() {
}
#endif
+#if defined(OS_MACOSX)
+ // Initialize AVFoundation if supported, for audio and video.
+ AVFoundationGlue::InitializeAVFoundation();
jam 2015/05/27 14:54:37 btw do you have timings on how long this takes to
tommi (sloooow) - chröme 2015/05/27 15:54:53 Added perf trace. I'm building right now on my lap
+#endif
+
// Need to initialize in-process GpuDataManager before creating threads.
// It's unsafe to append the gpu command line switches to the global
// CommandLine::ForCurrentProcess object after threads are created.
« no previous file with comments | « no previous file | content/public/test/browser_test_base.cc » ('j') | content/public/test/browser_test_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698