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

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

Issue 165393003: gpu: Generate mailboxes on client side (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 gfx::Size, /* size */ 450 gfx::Size, /* size */
451 GPUCreateCommandBufferConfig, /* init_params */ 451 GPUCreateCommandBufferConfig, /* init_params */
452 int32 /* route_id */) 452 int32 /* route_id */)
453 453
454 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its 454 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its
455 // destructor, so that the stub deletes the actual CommandBufferService 455 // destructor, so that the stub deletes the actual CommandBufferService
456 // object that it's hosting. 456 // object that it's hosting.
457 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer, 457 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer,
458 int32 /* instance_id */) 458 int32 /* instance_id */)
459 459
460 // Generates n new unique mailbox names synchronously.
461 IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_GenerateMailboxNames,
462 unsigned, /* num */
463 std::vector<gpu::Mailbox> /* mailbox_names */)
464
465 // Generates n new unique mailbox names asynchronously.
466 IPC_MESSAGE_CONTROL1(GpuChannelMsg_GenerateMailboxNamesAsync,
467 unsigned /* num */)
468
469 // Reply to GpuChannelMsg_GenerateMailboxNamesAsync.
470 IPC_MESSAGE_CONTROL1(GpuChannelMsg_GenerateMailboxNamesReply,
471 std::vector<gpu::Mailbox> /* mailbox_names */)
472
473 // Create a new GPU-accelerated video encoder. 460 // Create a new GPU-accelerated video encoder.
474 IPC_SYNC_MESSAGE_CONTROL0_1(GpuChannelMsg_CreateVideoEncoder, 461 IPC_SYNC_MESSAGE_CONTROL0_1(GpuChannelMsg_CreateVideoEncoder,
475 int32 /* route_id */) 462 int32 /* route_id */)
476 463
477 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroyVideoEncoder, int32 /* route_id */) 464 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroyVideoEncoder, int32 /* route_id */)
478 465
479 // Sent by DevTools agent in the inspected renderer process to initiate GPU 466 // Sent by DevTools agent in the inspected renderer process to initiate GPU
480 // instrumentation events recording. 467 // instrumentation events recording.
481 IPC_SYNC_MESSAGE_CONTROL0_1(GpuChannelMsg_DevToolsStartEventsRecording, 468 IPC_SYNC_MESSAGE_CONTROL0_1(GpuChannelMsg_DevToolsStartEventsRecording,
482 int32 /* route_id */) 469 int32 /* route_id */)
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 771
785 // Notify the renderer that an output buffer has been filled with encoded data. 772 // Notify the renderer that an output buffer has been filled with encoded data.
786 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady, 773 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady,
787 int32 /* bitstream_buffer_id */, 774 int32 /* bitstream_buffer_id */,
788 uint32 /* payload_size */, 775 uint32 /* payload_size */,
789 bool /* key_frame */) 776 bool /* key_frame */)
790 777
791 // Report error condition. 778 // Report error condition.
792 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 779 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
793 media::VideoEncodeAccelerator::Error /* error */) 780 media::VideoEncodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698