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

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

Issue 8566059: Add CommandBuffer::SetGetBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: etc Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // renderer go into the lost state. 313 // renderer go into the lost state.
314 IPC_MESSAGE_CONTROL0(GpuChannelMsg_CloseChannel) 314 IPC_MESSAGE_CONTROL0(GpuChannelMsg_CloseChannel)
315 315
316 //------------------------------------------------------------------------------ 316 //------------------------------------------------------------------------------
317 // GPU Command Buffer Messages 317 // GPU Command Buffer Messages
318 // These are messages between a renderer process to the GPU process relating to 318 // These are messages between a renderer process to the GPU process relating to
319 // a single OpenGL context. 319 // a single OpenGL context.
320 // Initialize a command buffer with the given number of command entries. 320 // Initialize a command buffer with the given number of command entries.
321 // Returns the shared memory handle for the command buffer mapped to the 321 // Returns the shared memory handle for the command buffer mapped to the
322 // calling process. 322 // calling process.
323 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Initialize, 323 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_Initialize,
324 base::SharedMemoryHandle /* ring_buffer */,
325 int32 /* size */,
326 bool /* result */) 324 bool /* result */)
327 325
326 // Sets the shared memory buffer used for commands.
327 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer,
328 int32 /* shm_id */)
329
328 // Sets the parent command buffer. This allows the parent and child to share 330 // Sets the parent command buffer. This allows the parent and child to share
329 // textures. 331 // textures.
330 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent, 332 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent,
331 int32 /* parent_route_id */, 333 int32 /* parent_route_id */,
332 uint32 /* parent_texture_id */, 334 uint32 /* parent_texture_id */,
333 bool /* result */) 335 bool /* result */)
334 336
335 // Get the current state of the command buffer. 337 // Get the current state of the command buffer.
336 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, 338 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState,
337 gpu::CommandBuffer::State /* state */) 339 gpu::CommandBuffer::State /* state */)
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 519
518 // Confirm decoder has been reset. 520 // Confirm decoder has been reset.
519 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 521 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
520 522
521 // Decoder has faced end of stream marker in the stream. 523 // Decoder has faced end of stream marker in the stream.
522 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) 524 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream)
523 525
524 // Video decoder has encountered an error. 526 // Video decoder has encountered an error.
525 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 527 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
526 uint32) /* Error ID */ 528 uint32) /* Error ID */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698