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

Unified Diff: content/common/gpu/media/media_messages.h

Issue 1751323002: Allow multiple texture ids per picture buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/media_messages.h
diff --git a/content/common/gpu/media/media_messages.h b/content/common/gpu/media/media_messages.h
index 2abc1a49c9e81bfc73ef4fc6a3fe9968e769fead..9470d7855c89fb4698bea5ddf1d8f1b3abc08a93 100644
--- a/content/common/gpu/media/media_messages.h
+++ b/content/common/gpu/media/media_messages.h
@@ -111,9 +111,10 @@ IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_SetCdm, int32_t /* CDM ID */)
IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode, media::BitstreamBuffer)
// Give the texture IDs for the textures the decoder will use for output.
-IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_AssignPictureBuffers,
- std::vector<int32_t>, /* Picture buffer ID */
- std::vector<uint32_t>) /* Texture ID */
+IPC_MESSAGE_ROUTED2(
+ AcceleratedVideoDecoderMsg_AssignPictureBuffers,
+ std::vector<int32_t>, /* Picture buffer ID */
+ std::vector<media::PictureBuffer::TextureIds>) /* Texture ID */
// Send from Renderer process to the GPU process to recycle the given picture
// buffer for further decoding.
@@ -144,8 +145,9 @@ IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed,
int32_t) /* Processed buffer ID */
// Allocate video frames for output of the hardware video decoder.
-IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers,
+IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers,
int32_t, /* Number of video frames to generate */
+ uint32_t, /* Number of textures per frame */
gfx::Size, /* Requested size of buffer */
uint32_t) /* Texture target */

Powered by Google App Engine
This is Rietveld 408576698