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 #include <initguid.h> | 10 #include <initguid.h> |
11 #include <stdint.h> | 11 #include <stdint.h> |
| 12 |
12 // Work around bug in this header by disabling the relevant warning for it. | 13 // Work around bug in this header by disabling the relevant warning for it. |
13 // https://connect.microsoft.com/VisualStudio/feedback/details/911260/dxva2api-h
-in-win8-sdk-triggers-c4201-with-w4 | 14 // https://connect.microsoft.com/VisualStudio/feedback/details/911260/dxva2api-h
-in-win8-sdk-triggers-c4201-with-w4 |
14 #pragma warning(push) | 15 #pragma warning(push) |
15 #pragma warning(disable:4201) | 16 #pragma warning(disable:4201) |
16 #include <dxva2api.h> | 17 #include <dxva2api.h> |
17 #pragma warning(pop) | 18 #pragma warning(pop) |
18 #include <mfidl.h> | 19 #include <mfidl.h> |
19 | 20 |
20 #include <list> | 21 #include <list> |
21 #include <map> | 22 #include <map> |
| 23 #include <memory> |
22 #include <vector> | 24 #include <vector> |
23 | 25 |
24 #include "base/compiler_specific.h" | 26 #include "base/compiler_specific.h" |
25 #include "base/macros.h" | 27 #include "base/macros.h" |
26 #include "base/memory/linked_ptr.h" | 28 #include "base/memory/linked_ptr.h" |
27 #include "base/memory/weak_ptr.h" | 29 #include "base/memory/weak_ptr.h" |
28 #include "base/synchronization/lock.h" | 30 #include "base/synchronization/lock.h" |
29 #include "base/threading/non_thread_safe.h" | 31 #include "base/threading/non_thread_safe.h" |
30 #include "base/threading/thread.h" | 32 #include "base/threading/thread.h" |
31 #include "base/win/scoped_comptr.h" | 33 #include "base/win/scoped_comptr.h" |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 | 483 |
482 // Function pointer for the MFCreateDXGIDeviceManager API. | 484 // Function pointer for the MFCreateDXGIDeviceManager API. |
483 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 485 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
484 | 486 |
485 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 487 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
486 }; | 488 }; |
487 | 489 |
488 } // namespace content | 490 } // namespace content |
489 | 491 |
490 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ | 492 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |