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

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

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: minor bugfix Created 4 years, 2 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
« no previous file with comments | « media/gpu/ipc/common/BUILD.gn ('k') | media/gpu/ipc/service/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/ipc/common/media_messages.h
diff --git a/media/gpu/ipc/common/media_messages.h b/media/gpu/ipc/common/media_messages.h
index a841f1fc89cac9aeb1952865936c65c7b0cf5b3a..f7bf754f070606258e682f7125c4679aac081aef 100644
--- a/media/gpu/ipc/common/media_messages.h
+++ b/media/gpu/ipc/common/media_messages.h
@@ -16,6 +16,7 @@
#include "media/video/jpeg_decode_accelerator.h"
#include "media/video/video_decode_accelerator.h"
#include "media/video/video_encode_accelerator.h"
+#include "ui/gfx/ipc/color/gfx_param_traits.h"
#include "ui/gfx/ipc/gfx_param_traits.h"
#define IPC_MESSAGE_START MediaMsgStart
@@ -45,6 +46,15 @@ IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params2)
IPC_STRUCT_MEMBER(bool, force_keyframe)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(AcceleratedVideoDecoderHostMsg_PictureReady_Params)
+ IPC_STRUCT_MEMBER(int32_t, picture_buffer_id)
+ IPC_STRUCT_MEMBER(int32_t, bitstream_buffer_id)
+ IPC_STRUCT_MEMBER(gfx::Rect, visible_rect)
+ IPC_STRUCT_MEMBER(gfx::ColorSpace, color_space)
+ IPC_STRUCT_MEMBER(bool, allow_overlay)
+ IPC_STRUCT_MEMBER(bool, size_changed)
+IPC_STRUCT_END()
+
//------------------------------------------------------------------------------
// Utility Messages
@@ -120,12 +130,8 @@ IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer,
int32_t) /* Picture buffer ID */
// Decoder reports that a picture is ready.
-IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady,
- int32_t, /* Picture buffer ID */
- int32_t, /* Bitstream buffer ID */
- gfx::Rect, /* Visible rectangle */
- bool, /* Buffer is HW overlay capable */
- bool) /* VDA updated picture size */
+IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_PictureReady,
+ AcceleratedVideoDecoderHostMsg_PictureReady_Params)
// Confirm decoder has been flushed.
IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
« no previous file with comments | « media/gpu/ipc/common/BUILD.gn ('k') | media/gpu/ipc/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698