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

Side by Side Diff: content/common/gpu/media/dxva_video_decode_accelerator.h

Issue 1428213003: Preload the media foundation, h.264 decoder and the dxva2.dll before the gpu sandbox is initialized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix defined macros Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <d3d11.h> 8 #include <d3d11.h>
9 #include <d3d9.h> 9 #include <d3d9.h>
10 // Work around bug in this header by disabling the relevant warning for it. 10 // Work around bug in this header by disabling the relevant warning for it.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void ReusePictureBuffer(int32 picture_buffer_id) override; 72 void ReusePictureBuffer(int32 picture_buffer_id) override;
73 void Flush() override; 73 void Flush() override;
74 void Reset() override; 74 void Reset() override;
75 void Destroy() override; 75 void Destroy() override;
76 bool CanDecodeOnIOThread() override; 76 bool CanDecodeOnIOThread() override;
77 GLenum GetSurfaceInternalFormat() const override; 77 GLenum GetSurfaceInternalFormat() const override;
78 78
79 static media::VideoDecodeAccelerator::SupportedProfiles 79 static media::VideoDecodeAccelerator::SupportedProfiles
80 GetSupportedProfiles(); 80 GetSupportedProfiles();
81 81
82 // Preload dlls required for decoding.
83 static void PreSandboxInitialization();
84
82 private: 85 private:
83 typedef void* EGLConfig; 86 typedef void* EGLConfig;
84 typedef void* EGLSurface; 87 typedef void* EGLSurface;
85 88
86 // Creates and initializes an instance of the D3D device and the 89 // Creates and initializes an instance of the D3D device and the
87 // corresponding device manager. The device manager instance is eventually 90 // corresponding device manager. The device manager instance is eventually
88 // passed to the IMFTransform interface implemented by the decoder. 91 // passed to the IMFTransform interface implemented by the decoder.
89 bool CreateD3DDevManager(); 92 bool CreateD3DDevManager();
90 93
91 // Creates and initializes an instance of the DX11 device and the 94 // Creates and initializes an instance of the DX11 device and the
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 376
374 // Function pointer for the MFCreateDXGIDeviceManager API. 377 // Function pointer for the MFCreateDXGIDeviceManager API.
375 static CreateDXGIDeviceManager create_dxgi_device_manager_; 378 static CreateDXGIDeviceManager create_dxgi_device_manager_;
376 379
377 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); 380 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator);
378 }; 381 };
379 382
380 } // namespace content 383 } // namespace content
381 384
382 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 385 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698