Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: media/gpu/ipc/service/gpu_video_encode_accelerator.h

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix several more bot-identified build issues Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_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 "gpu/config/gpu_info.h" 16 #include "gpu/config/gpu_info.h"
17 #include "gpu/ipc/service/gpu_command_buffer_stub.h" 17 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
18 #include "ipc/ipc_listener.h" 18 #include "ipc/ipc_listener.h"
19 #include "media/video/video_encode_accelerator.h" 19 #include "media/video/video_encode_accelerator.h"
20 #include "ui/gfx/geometry/size.h" 20 #include "ui/gfx/geometry/size.h"
21 21
22 struct AcceleratedVideoEncoderMsg_Encode_Params; 22 struct AcceleratedVideoEncoderMsg_Encode_Params;
23 struct AcceleratedVideoEncoderMsg_Encode_Params2; 23 struct AcceleratedVideoEncoderMsg_Encode_Params2;
24 24
25 namespace base { 25 namespace base {
26 class SharedMemory; 26 class SharedMemory;
27 } // namespace base 27 } // namespace base
28 28
29 namespace gpu { 29 namespace gpu {
30 struct GpuPreferences; 30 struct GpuPreferences;
31 } // namespace gpu 31 } // namespace gpu
32 32
33 namespace content { 33 namespace media {
34 34
35 // This class encapsulates the GPU process view of a VideoEncodeAccelerator, 35 // This class encapsulates the GPU process view of a VideoEncodeAccelerator,
36 // wrapping the platform-specific VideoEncodeAccelerator instance. It handles 36 // wrapping the platform-specific VideoEncodeAccelerator instance. It handles
37 // IPC coming in from the renderer and passes it to the underlying VEA. 37 // IPC coming in from the renderer and passes it to the underlying VEA.
38 class GpuVideoEncodeAccelerator 38 class GpuVideoEncodeAccelerator
39 : public IPC::Listener, 39 : public IPC::Listener,
40 public media::VideoEncodeAccelerator::Client, 40 public media::VideoEncodeAccelerator::Client,
41 public gpu::GpuCommandBufferStub::DestructionObserver { 41 public gpu::GpuCommandBufferStub::DestructionObserver {
42 public: 42 public:
43 GpuVideoEncodeAccelerator(int32_t host_route_id, 43 GpuVideoEncodeAccelerator(int32_t host_route_id,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 gfx::Size input_visible_size_; 124 gfx::Size input_visible_size_;
125 gfx::Size input_coded_size_; 125 gfx::Size input_coded_size_;
126 size_t output_buffer_size_; 126 size_t output_buffer_size_;
127 127
128 // Weak pointer for media::VideoFrames that refer back to |this|. 128 // Weak pointer for media::VideoFrames that refer back to |this|.
129 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; 129 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); 131 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator);
132 }; 132 };
133 133
134 } // namespace content 134 } // namespace media
135 135
136 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 136 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698