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

Side by Side Diff: content/gpu/gpu_child_thread.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: Squash and rebase Created 4 years, 7 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 (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_GPU_GPU_CHILD_THREAD_H_ 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 #include "gpu/ipc/service/x_util.h" 27 #include "gpu/ipc/service/x_util.h"
28 #include "mojo/public/cpp/bindings/binding_set.h" 28 #include "mojo/public/cpp/bindings/binding_set.h"
29 #include "mojo/public/cpp/bindings/interface_request.h" 29 #include "mojo/public/cpp/bindings/interface_request.h"
30 #include "ui/gfx/native_widget_types.h" 30 #include "ui/gfx/native_widget_types.h"
31 31
32 namespace gpu { 32 namespace gpu {
33 class GpuMemoryBufferFactory; 33 class GpuMemoryBufferFactory;
34 class SyncPointManager; 34 class SyncPointManager;
35 } 35 }
36 36
37 namespace media {
38 class MediaService;
39 }
40
37 namespace sandbox { 41 namespace sandbox {
38 class TargetServices; 42 class TargetServices;
39 } 43 }
40 44
41 namespace content { 45 namespace content {
42 class GpuProcessControlImpl; 46 class GpuProcessControlImpl;
43 class GpuWatchdogThread; 47 class GpuWatchdogThread;
44 class MediaService;
45 struct EstablishChannelParams; 48 struct EstablishChannelParams;
46 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
47 struct BufferPresentedParams; 50 struct BufferPresentedParams;
48 #endif 51 #endif
49 52
50 // The main thread of the GPU child process. There will only ever be one of 53 // The main thread of the GPU child process. There will only ever be one of
51 // these per process. It does process initialization and shutdown. It forwards 54 // these per process. It does process initialization and shutdown. It forwards
52 // IPC messages to gpu::GpuChannelManager, which is responsible for issuing 55 // IPC messages to gpu::GpuChannelManager, which is responsible for issuing
53 // rendering commands to the GPU. 56 // rendering commands to the GPU.
54 class GpuChildThread : public ChildThreadImpl, 57 class GpuChildThread : public ChildThreadImpl,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 #if defined(OS_WIN) 156 #if defined(OS_WIN)
154 // Windows specific client sandbox interface. 157 // Windows specific client sandbox interface.
155 sandbox::TargetServices* target_services_; 158 sandbox::TargetServices* target_services_;
156 #endif 159 #endif
157 160
158 // Can be null if overridden by ContentGpuClient. 161 // Can be null if overridden by ContentGpuClient.
159 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_; 162 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_;
160 163
161 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_; 164 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_;
162 165
163 std::unique_ptr<MediaService> media_service_; 166 std::unique_ptr<media::MediaService> media_service_;
164 167
165 // Information about the GPU, such as device and vendor ID. 168 // Information about the GPU, such as device and vendor ID.
166 gpu::GPUInfo gpu_info_; 169 gpu::GPUInfo gpu_info_;
167 170
168 // Error messages collected in gpu_main() before the thread is created. 171 // Error messages collected in gpu_main() before the thread is created.
169 DeferredMessages deferred_messages_; 172 DeferredMessages deferred_messages_;
170 173
171 // Whether the GPU thread is running in the browser process. 174 // Whether the GPU thread is running in the browser process.
172 bool in_browser_process_; 175 bool in_browser_process_;
173 176
174 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. 177 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers.
175 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; 178 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
176 179
177 // Process control for Mojo application hosting. 180 // Process control for Mojo application hosting.
178 std::unique_ptr<GpuProcessControlImpl> process_control_; 181 std::unique_ptr<GpuProcessControlImpl> process_control_;
179 182
180 // Bindings to the mojom::ProcessControl impl. 183 // Bindings to the mojom::ProcessControl impl.
181 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; 184 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_;
182 185
183 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 186 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
184 }; 187 };
185 188
186 } // namespace content 189 } // namespace content
187 190
188 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 191 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« content/DEPS ('K') | « content/gpu/BUILD.gn ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698