| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |