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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator.h

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
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator.cc » ('j') | content/gpu/gpu_main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/dxva_video_decode_accelerator.h
===================================================================
--- content/common/gpu/media/dxva_video_decode_accelerator.h (revision 169901)
+++ content/common/gpu/media/dxva_video_decode_accelerator.h (working copy)
@@ -61,7 +61,9 @@
// 1. Loads the dlls like mf/mfplat/d3d9, etc required for decoding.
// 2. Setting up the device manager instance which is shared between all
// decoder instances.
- static void PreSandboxInitialization();
+ // Invokes the completion task, potentially on another thread, when complete.
+ static void PreSandboxInitialization(
+ const base::Closure& completion_task);
private:
typedef void* EGLConfig;
@@ -69,7 +71,9 @@
// Creates and initializes an instance of the D3D device and the
// corresponding device manager. The device manager instance is eventually
// passed to the IMFTransform interface implemented by the h.264 decoder.
- static bool CreateD3DDevManager();
+ // Invokes the completion task, potentially on another thread, when complete.
+ static void CreateD3DDevManager(
+ const base::Closure& completion_task);
// Creates, initializes and sets the media types for the h.264 decoder.
bool InitDecoder();
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator.cc » ('j') | content/gpu/gpu_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698