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

Side by Side Diff: media/gpu/ipc/common/media_messages.h

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test on bots Created 4 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "gpu/config/gpu_info.h" 8 #include "gpu/config/gpu_info.h"
9 #include "gpu/ipc/common/gpu_param_traits_macros.h" 9 #include "gpu/ipc/common/gpu_param_traits_macros.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Notify the deferred initialization result. 89 // Notify the deferred initialization result.
90 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_InitializationComplete, 90 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_InitializationComplete,
91 bool) /* success */ 91 bool) /* success */
92 92
93 // Accelerated video decoder has consumed input buffer from transfer buffer. 93 // Accelerated video decoder has consumed input buffer from transfer buffer.
94 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed, 94 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed,
95 int32_t) /* Processed buffer ID */ 95 int32_t) /* Processed buffer ID */
96 96
97 // Allocate video frames for output of the hardware video decoder. 97 // Allocate video frames for output of the hardware video decoder.
98 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers, 98 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers,
99 int32_t, /* Number of video frames to generate */ 99 int32_t, /* Number of video frames to generate */
100 uint32_t, /* Number of textures per frame */ 100 media::VideoPixelFormat, /* Picture buffer format */
101 gfx::Size, /* Requested size of buffer */ 101 uint32_t, /* Number of textures per frame */
102 uint32_t) /* Texture target */ 102 gfx::Size, /* Requested size of buffer */
103 uint32_t) /* Texture target */
103 104
104 // Decoder reports that a picture is ready and buffer does not need to be passed 105 // Decoder reports that a picture is ready and buffer does not need to be passed
105 // back to the decoder. 106 // back to the decoder.
106 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, 107 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer,
107 int32_t) /* Picture buffer ID */ 108 int32_t) /* Picture buffer ID */
108 109
109 // Decoder reports that a picture is ready. 110 // Decoder reports that a picture is ready.
110 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady, 111 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady,
111 int32_t, /* Picture buffer ID */ 112 int32_t, /* Picture buffer ID */
112 int32_t, /* Bitstream buffer ID */ 113 int32_t, /* Bitstream buffer ID */
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 212 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
212 213
213 //------------------------------------------------------------------------------ 214 //------------------------------------------------------------------------------
214 // Accelerated JPEG Decoder Host Messages 215 // Accelerated JPEG Decoder Host Messages
215 // These messages are sent from the GPU process to Browser process. 216 // These messages are sent from the GPU process to Browser process.
216 // 217 //
217 // Report decode status. 218 // Report decode status.
218 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 219 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
219 int32_t, /* bitstream_buffer_id */ 220 int32_t, /* bitstream_buffer_id */
220 media::JpegDecodeAccelerator::Error /* error */) 221 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW
« no previous file with comments | « media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc ('k') | media/gpu/ipc/service/gpu_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698