| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 void Flush() override; | 128 void Flush() override; |
| 129 void Reset() override; | 129 void Reset() override; |
| 130 void Destroy() override; | 130 void Destroy() override; |
| 131 bool TryToSetupDecodeOnSeparateThread( | 131 bool TryToSetupDecodeOnSeparateThread( |
| 132 const base::WeakPtr<Client>& decode_client, | 132 const base::WeakPtr<Client>& decode_client, |
| 133 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 133 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
| 134 override; | 134 override; |
| 135 GLenum GetSurfaceInternalFormat() const override; | 135 GLenum GetSurfaceInternalFormat() const override; |
| 136 | 136 |
| 137 static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles( | 137 static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles( |
| 138 const gpu::GpuPreferences& gpu_preferences); | 138 const gpu::GpuPreferences& gpu_preferences, |
| 139 const gpu::GpuDriverBugWorkarounds& workarounds); |
| 139 | 140 |
| 140 // Preload dlls required for decoding. | 141 // Preload dlls required for decoding. |
| 141 static void PreSandboxInitialization(); | 142 static void PreSandboxInitialization(); |
| 142 | 143 |
| 143 private: | 144 private: |
| 144 friend class DXVAPictureBuffer; | 145 friend class DXVAPictureBuffer; |
| 145 friend class EGLStreamCopyPictureBuffer; | 146 friend class EGLStreamCopyPictureBuffer; |
| 146 friend class EGLStreamPictureBuffer; | 147 friend class EGLStreamPictureBuffer; |
| 147 friend class PbufferPictureBuffer; | 148 friend class PbufferPictureBuffer; |
| 148 typedef void* EGLConfig; | 149 typedef void* EGLConfig; |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 558 |
| 558 // Function pointer for the MFCreateDXGIDeviceManager API. | 559 // Function pointer for the MFCreateDXGIDeviceManager API. |
| 559 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 560 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
| 560 | 561 |
| 561 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 562 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
| 562 }; | 563 }; |
| 563 | 564 |
| 564 } // namespace media | 565 } // namespace media |
| 565 | 566 |
| 566 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 567 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| OLD | NEW |