| 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 MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 5 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| 7 | 7 |
| 8 #include <d3d11.h> | 8 #include <d3d11.h> |
| 9 #include <d3d9.h> | 9 #include <d3d9.h> |
| 10 #include <initguid.h> | 10 #include <initguid.h> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 123 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 124 void Flush() override; | 124 void Flush() override; |
| 125 void Reset() override; | 125 void Reset() override; |
| 126 void Destroy() override; | 126 void Destroy() override; |
| 127 bool TryToSetupDecodeOnSeparateThread( | 127 bool TryToSetupDecodeOnSeparateThread( |
| 128 const base::WeakPtr<Client>& decode_client, | 128 const base::WeakPtr<Client>& decode_client, |
| 129 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 129 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
| 130 override; | 130 override; |
| 131 GLenum GetSurfaceInternalFormat() const override; | 131 GLenum GetSurfaceInternalFormat() const override; |
| 132 | 132 |
| 133 static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles(); | 133 static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles( |
| 134 const gpu::GpuPreferences& gpu_preferences); |
| 134 | 135 |
| 135 // Preload dlls required for decoding. | 136 // Preload dlls required for decoding. |
| 136 static void PreSandboxInitialization(); | 137 static void PreSandboxInitialization(); |
| 137 | 138 |
| 138 private: | 139 private: |
| 139 friend class DXVAPictureBuffer; | 140 friend class DXVAPictureBuffer; |
| 140 friend class EGLStreamCopyPictureBuffer; | 141 friend class EGLStreamCopyPictureBuffer; |
| 141 friend class EGLStreamPictureBuffer; | 142 friend class EGLStreamPictureBuffer; |
| 142 friend class PbufferPictureBuffer; | 143 friend class PbufferPictureBuffer; |
| 143 typedef void* EGLConfig; | 144 typedef void* EGLConfig; |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 | 512 |
| 512 // Function pointer for the MFCreateDXGIDeviceManager API. | 513 // Function pointer for the MFCreateDXGIDeviceManager API. |
| 513 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 514 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
| 514 | 515 |
| 515 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 516 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
| 516 }; | 517 }; |
| 517 | 518 |
| 518 } // namespace media | 519 } // namespace media |
| 519 | 520 |
| 520 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 521 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| OLD | NEW |