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

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

Issue 10081018: Revert 132218 - Convert plugin and GPU process to brokered handle duplication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
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 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <vector> 8 #include <vector>
9 #include <string> 9 #include <string>
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // Tells the GPU process to hang. 209 // Tells the GPU process to hang.
210 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) 210 IPC_MESSAGE_CONTROL0(GpuMsg_Hang)
211 211
212 //------------------------------------------------------------------------------ 212 //------------------------------------------------------------------------------
213 // GPU Host Messages 213 // GPU Host Messages
214 // These are messages to the browser. 214 // These are messages to the browser.
215 215
216 // A renderer sends this when it wants to create a connection to the GPU 216 // A renderer sends this when it wants to create a connection to the GPU
217 // process. The browser will create the GPU process if necessary, and will 217 // process. The browser will create the GPU process if necessary, and will
218 // return a handle to the channel via a GpuChannelEstablished message. 218 // return a handle to the channel via a GpuChannelEstablished message.
219 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, 219 IPC_SYNC_MESSAGE_CONTROL1_4(GpuHostMsg_EstablishGpuChannel,
220 content::CauseForGpuLaunch, 220 content::CauseForGpuLaunch,
221 int /* client id */, 221 int /* client id */,
222 IPC::ChannelHandle /* handle to channel */, 222 IPC::ChannelHandle /* handle to channel */,
223 base::ProcessHandle /* renderer_process_for_gpu */,
223 content::GPUInfo /* stats about GPU process*/) 224 content::GPUInfo /* stats about GPU process*/)
224 225
225 // A renderer sends this to the browser process when it wants to 226 // A renderer sends this to the browser process when it wants to
226 // create a GL context associated with the given view_id. 227 // create a GL context associated with the given view_id.
227 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateViewCommandBuffer, 228 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateViewCommandBuffer,
228 int32, /* surface_id */ 229 int32, /* surface_id */
229 GPUCreateCommandBufferConfig, /* init_params */ 230 GPUCreateCommandBufferConfig, /* init_params */
230 int32 /* route_id */) 231 int32 /* route_id */)
231 232
232 // Response from GPU to a GpuHostMsg_EstablishChannel message. 233 // Response from GPU to a GpuHostMsg_EstablishChannel message.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 285
285 // Tells the browser to release resources for the given surface until the next 286 // Tells the browser to release resources for the given surface until the next
286 // time swap buffers or post sub buffer is sent. 287 // time swap buffers or post sub buffer is sent.
287 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend, 288 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend,
288 int32 /* surface_id */) 289 int32 /* surface_id */)
289 290
290 //------------------------------------------------------------------------------ 291 //------------------------------------------------------------------------------
291 // GPU Channel Messages 292 // GPU Channel Messages
292 // These are messages from a renderer process to the GPU process. 293 // These are messages from a renderer process to the GPU process.
293 294
295 // Initialize a channel between a renderer process and a GPU process. The
296 // renderer passes its process handle to the GPU process, which gives gives the
297 // GPU process the ability to map handles from the renderer process. This must
298 // be the first message sent on a newly connected channel.
299 IPC_MESSAGE_CONTROL1(GpuChannelMsg_Initialize,
300 base::ProcessHandle /* renderer_process_for_gpu */)
301
294 // Tells the GPU process to create a new command buffer that renders to an 302 // Tells the GPU process to create a new command buffer that renders to an
295 // offscreen frame buffer. 303 // offscreen frame buffer.
296 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer, 304 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer,
297 gfx::Size, /* size */ 305 gfx::Size, /* size */
298 GPUCreateCommandBufferConfig, /* init_params */ 306 GPUCreateCommandBufferConfig, /* init_params */
299 int32 /* route_id */) 307 int32 /* route_id */)
300 308
301 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its 309 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its
302 // destructor, so that the stub deletes the actual CommandBufferService 310 // destructor, so that the stub deletes the actual CommandBufferService
303 // object that it's hosting. 311 // object that it's hosting.
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 511
504 // Confirm decoder has been flushed. 512 // Confirm decoder has been flushed.
505 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
506 514
507 // Confirm decoder has been reset. 515 // Confirm decoder has been reset.
508 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 516 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
509 517
510 // Video decoder has encountered an error. 518 // Video decoder has encountered an error.
511 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 519 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
512 uint32) /* Error ID */ 520 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/media/dxva_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698