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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 1767673002: Revert of Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 IPC::Message* reply_message); 175 IPC::Message* reply_message);
176 void OnAsyncFlush(int32_t put_offset, 176 void OnAsyncFlush(int32_t put_offset,
177 uint32_t flush_count, 177 uint32_t flush_count,
178 const std::vector<ui::LatencyInfo>& latency_info); 178 const std::vector<ui::LatencyInfo>& latency_info);
179 void OnRegisterTransferBuffer(int32_t id, 179 void OnRegisterTransferBuffer(int32_t id,
180 base::SharedMemoryHandle transfer_buffer, 180 base::SharedMemoryHandle transfer_buffer,
181 uint32_t size); 181 uint32_t size);
182 void OnDestroyTransferBuffer(int32_t id); 182 void OnDestroyTransferBuffer(int32_t id);
183 void OnGetTransferBuffer(int32_t id, IPC::Message* reply_message); 183 void OnGetTransferBuffer(int32_t id, IPC::Message* reply_message);
184 184
185 void OnCreateVideoDecoder(const media::VideoDecodeAccelerator::Config& config,
186 int32_t route_id,
187 IPC::Message* reply_message);
188 void OnCreateVideoEncoder(media::VideoPixelFormat input_format,
189 const gfx::Size& input_visible_size,
190 media::VideoCodecProfile output_profile,
191 uint32_t initial_bitrate,
192 int32_t route_id,
193 IPC::Message* reply_message);
194
185 void OnEnsureBackbuffer(); 195 void OnEnsureBackbuffer();
186 196
187 void OnSignalSyncToken(const gpu::SyncToken& sync_token, uint32_t id); 197 void OnSignalSyncToken(const gpu::SyncToken& sync_token, uint32_t id);
188 void OnSignalAck(uint32_t id); 198 void OnSignalAck(uint32_t id);
189 void OnSignalQuery(uint32_t query, uint32_t id); 199 void OnSignalQuery(uint32_t query, uint32_t id);
190 200
191 void OnFenceSyncRelease(uint64_t release); 201 void OnFenceSyncRelease(uint64_t release);
192 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, 202 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id,
193 gpu::CommandBufferId command_buffer_id, 203 gpu::CommandBufferId command_buffer_id,
194 uint64_t release); 204 uint64_t release);
(...skipping 28 matching lines...) Expand all
223 233
224 bool CheckContextLost(); 234 bool CheckContextLost();
225 void CheckCompleteWaits(); 235 void CheckCompleteWaits();
226 void PullTextureUpdates(gpu::CommandBufferNamespace namespace_id, 236 void PullTextureUpdates(gpu::CommandBufferNamespace namespace_id,
227 gpu::CommandBufferId command_buffer_id, 237 gpu::CommandBufferId command_buffer_id,
228 uint32_t release); 238 uint32_t release);
229 239
230 // The lifetime of objects of this class is managed by a GpuChannel. The 240 // The lifetime of objects of this class is managed by a GpuChannel. The
231 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they 241 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they
232 // are destroyed. So a raw pointer is safe. 242 // are destroyed. So a raw pointer is safe.
233 GpuChannel* const channel_; 243 GpuChannel* channel_;
234 244
235 // Outlives the stub. 245 // Outlives the stub.
236 gpu::SyncPointManager* const sync_point_manager_; 246 gpu::SyncPointManager* sync_point_manager_;
237 247
238 // Task runner for main thread. 248 // Task runner for main thread.
239 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 249 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
240 250
241 // The group of contexts that share namespaces with this context. 251 // The group of contexts that share namespaces with this context.
242 scoped_refptr<gpu::gles2::ContextGroup> context_group_; 252 scoped_refptr<gpu::gles2::ContextGroup> context_group_;
243 253
244 bool initialized_; 254 bool initialized_;
245 gfx::GLSurfaceHandle handle_; 255 gfx::GLSurfaceHandle handle_;
246 gfx::Size initial_size_; 256 gfx::Size initial_size_;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 290
281 scoped_ptr<WaitForCommandState> wait_for_token_; 291 scoped_ptr<WaitForCommandState> wait_for_token_;
282 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 292 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
283 293
284 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 294 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
285 }; 295 };
286 296
287 } // namespace content 297 } // namespace content
288 298
289 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 299 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_manager_unittest.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698