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

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

Issue 177953004: Enable SurfaceTexture based zero-copy texture uploading on Android platform Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 644
645 // Destroy a previously created gpu memory buffer. 645 // Destroy a previously created gpu memory buffer.
646 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyGpuMemoryBuffer, 646 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyGpuMemoryBuffer,
647 int32 /* id */) 647 int32 /* id */)
648 648
649 // Attaches an external image stream to the client texture. 649 // Attaches an external image stream to the client texture.
650 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_CreateStreamTexture, 650 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_CreateStreamTexture,
651 uint32, /* client_texture_id */ 651 uint32, /* client_texture_id */
652 int32 /* stream_id */) 652 int32 /* stream_id */)
653 653
654 // Create SurfaceTexture based on the client texture.
655 IPC_SYNC_MESSAGE_ROUTED1_2(
656 GpuCommandBufferMsg_CreateSurfaceTexture,
657 uint32, /* GpuCommandBuffer handle which is valid in renderer process */
658 uint32, /* SurfaceTexture handle which is valid in GPU process */
659 uint32) /* texture id generated in the GPU Process */
660
654 //------------------------------------------------------------------------------ 661 //------------------------------------------------------------------------------
655 // Accelerated Video Decoder Messages 662 // Accelerated Video Decoder Messages
656 // These messages are sent from Renderer process to GPU process. 663 // These messages are sent from Renderer process to GPU process.
657 664
658 // Send input buffer for decoding. 665 // Send input buffer for decoding.
659 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderMsg_Decode, 666 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderMsg_Decode,
660 base::SharedMemoryHandle, /* input_buffer_handle */ 667 base::SharedMemoryHandle, /* input_buffer_handle */
661 int32, /* bitstream_buffer_id */ 668 int32, /* bitstream_buffer_id */
662 uint32) /* size */ 669 uint32) /* size */
663 670
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 778
772 // Notify the renderer that an output buffer has been filled with encoded data. 779 // Notify the renderer that an output buffer has been filled with encoded data.
773 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady, 780 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady,
774 int32 /* bitstream_buffer_id */, 781 int32 /* bitstream_buffer_id */,
775 uint32 /* payload_size */, 782 uint32 /* payload_size */,
776 bool /* key_frame */) 783 bool /* key_frame */)
777 784
778 // Report error condition. 785 // Report error condition.
779 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 786 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
780 media::VideoEncodeAccelerator::Error /* error */) 787 media::VideoEncodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698