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

Unified Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

Issue 11411249: Do DXVA pre-sandbox initialization off the main thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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: content/common/gpu/media/video_decode_accelerator_unittest.cc
===================================================================
--- content/common/gpu/media/video_decode_accelerator_unittest.cc (revision 169901)
+++ content/common/gpu/media/video_decode_accelerator_unittest.cc (working copy)
@@ -890,7 +890,11 @@
content::RenderingHelper::InitializePlatform();
#if defined(OS_WIN)
- content::DXVAVideoDecodeAccelerator::PreSandboxInitialization();
+ base::WaitableEvent event(true, false);
+ content::DXVAVideoDecodeAccelerator::PreSandboxInitialization(
+ base::Bind(&base::WaitableEvent::Signal,
+ base::Unretained(&event)));
+ event.Wait();
#elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
content::OmxVideoDecodeAccelerator::PreSandboxInitialization();
#elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)

Powered by Google App Engine
This is Rietveld 408576698