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_1.h> | 8 #include <d3d11_1.h> |
9 #include <d3d9.h> | 9 #include <d3d9.h> |
10 #include <initguid.h> | 10 #include <initguid.h> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 void Flush() override; | 129 void Flush() override; |
130 void Reset() override; | 130 void Reset() override; |
131 void Destroy() override; | 131 void Destroy() override; |
132 bool TryToSetupDecodeOnSeparateThread( | 132 bool TryToSetupDecodeOnSeparateThread( |
133 const base::WeakPtr<Client>& decode_client, | 133 const base::WeakPtr<Client>& decode_client, |
134 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 134 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
135 override; | 135 override; |
136 GLenum GetSurfaceInternalFormat() const override; | 136 GLenum GetSurfaceInternalFormat() const override; |
137 | 137 |
138 static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles( | 138 static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles( |
139 const gpu::GpuPreferences& gpu_preferences); | 139 const gpu::GpuPreferences& gpu_preferences, |
| 140 const gpu::GpuDriverBugWorkarounds& workarounds); |
140 | 141 |
141 // Preload dlls required for decoding. | 142 // Preload dlls required for decoding. |
142 static void PreSandboxInitialization(); | 143 static void PreSandboxInitialization(); |
143 | 144 |
144 private: | 145 private: |
145 friend class DXVAPictureBuffer; | 146 friend class DXVAPictureBuffer; |
146 friend class EGLStreamCopyPictureBuffer; | 147 friend class EGLStreamCopyPictureBuffer; |
147 friend class EGLStreamPictureBuffer; | 148 friend class EGLStreamPictureBuffer; |
148 friend class PbufferPictureBuffer; | 149 friend class PbufferPictureBuffer; |
149 typedef void* EGLConfig; | 150 typedef void* EGLConfig; |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 | 567 |
567 // Function pointer for the MFCreateDXGIDeviceManager API. | 568 // Function pointer for the MFCreateDXGIDeviceManager API. |
568 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 569 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
569 | 570 |
570 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 571 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
571 }; | 572 }; |
572 | 573 |
573 } // namespace media | 574 } // namespace media |
574 | 575 |
575 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 576 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
OLD | NEW |