OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ | 5 #ifndef MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ |
6 #define MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ | 6 #define MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ |
7 | 7 |
8 #include <mfapi.h> | 8 #include <mfapi.h> |
9 #include <mfidl.h> | 9 #include <mfidl.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 #include <strmif.h> | 11 #include <strmif.h> |
12 | 12 |
13 #include <deque> | 13 #include <deque> |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
| 16 #include "base/bind.h" |
16 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
17 #include "base/sequenced_task_runner.h" | 18 #include "base/sequenced_task_runner.h" |
18 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
| 20 #include "base/threading/thread.h" |
19 #include "base/threading/thread_checker.h" | 21 #include "base/threading/thread_checker.h" |
20 #include "base/win/scoped_comptr.h" | 22 #include "base/win/scoped_comptr.h" |
21 #include "media/gpu/media_gpu_export.h" | 23 #include "media/gpu/media_gpu_export.h" |
22 #include "media/video/video_encode_accelerator.h" | 24 #include "media/video/video_encode_accelerator.h" |
23 | 25 |
24 namespace media { | 26 namespace media { |
25 | 27 |
26 // Media Foundation implementation of the VideoEncodeAccelerator interface for | 28 // Media Foundation implementation of the VideoEncodeAccelerator interface for |
27 // Windows. | 29 // Windows. |
28 // This class saves the task runner on which it is constructed and returns | 30 // This class saves the task runner on which it is constructed and returns |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Declared last to ensure that all weak pointers are invalidated before | 143 // Declared last to ensure that all weak pointers are invalidated before |
142 // other destructors run. | 144 // other destructors run. |
143 base::WeakPtrFactory<MediaFoundationVideoEncodeAccelerator> | 145 base::WeakPtrFactory<MediaFoundationVideoEncodeAccelerator> |
144 encoder_task_weak_factory_; | 146 encoder_task_weak_factory_; |
145 | 147 |
146 DISALLOW_COPY_AND_ASSIGN(MediaFoundationVideoEncodeAccelerator); | 148 DISALLOW_COPY_AND_ASSIGN(MediaFoundationVideoEncodeAccelerator); |
147 }; | 149 }; |
148 | 150 |
149 } // namespace media | 151 } // namespace media |
150 | 152 |
151 #endif // MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ | 153 #endif // MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ |
OLD | NEW |