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

Unified Diff: media/gpu/ipc/service/gpu_video_decode_accelerator.cc

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/service/BUILD.gn ('k') | media/gpu/v4l2_slice_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/ipc/service/gpu_video_decode_accelerator.cc
diff --git a/media/gpu/ipc/service/gpu_video_decode_accelerator.cc b/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
index b5260344597e6195ecd1c95770c295795b37dc83..f6d81ecf522f80bacc48fafd62d7037e9495ad26 100644
--- a/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
+++ b/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
@@ -264,10 +264,15 @@ void GpuVideoDecodeAccelerator::PictureReady(const Picture& picture) {
DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id()));
}
- if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady(
- host_route_id_, picture.picture_buffer_id(),
- picture.bitstream_buffer_id(), picture.visible_rect(),
- picture.allow_overlay(), picture.size_changed()))) {
+ AcceleratedVideoDecoderHostMsg_PictureReady_Params params;
+ params.picture_buffer_id = picture.picture_buffer_id();
+ params.bitstream_buffer_id = picture.bitstream_buffer_id();
+ params.visible_rect = picture.visible_rect();
+ params.color_space = picture.color_space();
+ params.allow_overlay = picture.allow_overlay();
+ params.size_changed = picture.size_changed();
+ if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady(host_route_id_,
+ params))) {
DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed";
}
}
« no previous file with comments | « media/gpu/ipc/service/BUILD.gn ('k') | media/gpu/v4l2_slice_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698