OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ |
6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
18 #include "gpu/config/gpu_info.h" | 18 #include "gpu/config/gpu_info.h" |
19 #include "gpu/ipc/service/gpu_command_buffer_stub.h" | 19 #include "gpu/ipc/service/gpu_command_buffer_stub.h" |
20 #include "ipc/ipc_listener.h" | 20 #include "ipc/ipc_listener.h" |
21 #include "media/video/video_encode_accelerator.h" | 21 #include "media/video/video_encode_accelerator.h" |
22 #include "ui/gfx/geometry/size.h" | 22 #include "ui/gfx/geometry/size.h" |
23 | 23 |
24 struct AcceleratedVideoEncoderMsg_Encode_Params; | 24 struct AcceleratedVideoEncoderMsg_Encode_Params; |
25 | 25 |
26 namespace base { | |
27 class SharedMemory; | |
28 } // namespace base | |
29 | |
30 namespace gpu { | 26 namespace gpu { |
31 struct GpuPreferences; | 27 struct GpuPreferences; |
32 } // namespace gpu | 28 } // namespace gpu |
33 | 29 |
34 namespace media { | 30 namespace media { |
35 | 31 |
36 // This class encapsulates the GPU process view of a VideoEncodeAccelerator, | 32 // This class encapsulates the GPU process view of a VideoEncodeAccelerator, |
37 // wrapping the platform-specific VideoEncodeAccelerator instance. It handles | 33 // wrapping the platform-specific VideoEncodeAccelerator instance. It handles |
38 // IPC coming in from the renderer and passes it to the underlying VEA. | 34 // IPC coming in from the renderer and passes it to the underlying VEA. |
39 class GpuVideoEncodeAccelerator | 35 class GpuVideoEncodeAccelerator |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Weak pointer for VideoFrames that refer back to |this| on | 166 // Weak pointer for VideoFrames that refer back to |this| on |
171 // |main_task_runner| or |io_task_runner_|. | 167 // |main_task_runner| or |io_task_runner_|. |
172 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; | 168 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; |
173 | 169 |
174 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); | 170 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); |
175 }; | 171 }; |
176 | 172 |
177 } // namespace media | 173 } // namespace media |
178 | 174 |
179 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ | 175 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ |
OLD | NEW |