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

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

Issue 8865008: Revert 113479 - Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // renderer go into the lost state. 304 // renderer go into the lost state.
305 IPC_MESSAGE_CONTROL0(GpuChannelMsg_CloseChannel) 305 IPC_MESSAGE_CONTROL0(GpuChannelMsg_CloseChannel)
306 306
307 //------------------------------------------------------------------------------ 307 //------------------------------------------------------------------------------
308 // GPU Command Buffer Messages 308 // GPU Command Buffer Messages
309 // These are messages between a renderer process to the GPU process relating to 309 // These are messages between a renderer process to the GPU process relating to
310 // a single OpenGL context. 310 // a single OpenGL context.
311 // Initialize a command buffer with the given number of command entries. 311 // Initialize a command buffer with the given number of command entries.
312 // Returns the shared memory handle for the command buffer mapped to the 312 // Returns the shared memory handle for the command buffer mapped to the
313 // calling process. 313 // calling process.
314 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_Initialize, 314 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Initialize,
315 base::SharedMemoryHandle /* ring_buffer */,
316 int32 /* size */,
315 bool /* result */) 317 bool /* result */)
316 318
317 // Sets the shared memory buffer used for commands.
318 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer,
319 int32 /* shm_id */)
320
321 // Sets the parent command buffer. This allows the parent and child to share 319 // Sets the parent command buffer. This allows the parent and child to share
322 // textures. 320 // textures.
323 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent, 321 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_SetParent,
324 int32 /* parent_route_id */, 322 int32 /* parent_route_id */,
325 uint32 /* parent_texture_id */, 323 uint32 /* parent_texture_id */,
326 bool /* result */) 324 bool /* result */)
327 325
328 // Get the current state of the command buffer. 326 // Get the current state of the command buffer.
329 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, 327 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState,
330 gpu::CommandBuffer::State /* state */) 328 gpu::CommandBuffer::State /* state */)
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 508
511 // Confirm decoder has been reset. 509 // Confirm decoder has been reset.
512 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 510 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
513 511
514 // Decoder has faced end of stream marker in the stream. 512 // Decoder has faced end of stream marker in the stream.
515 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) 513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream)
516 514
517 // Video decoder has encountered an error. 515 // Video decoder has encountered an error.
518 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 516 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
519 uint32) /* Error ID */ 517 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/renderer/gpu/command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698