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

Unified Diff: media/gpu/ipc/client/gpu_video_decode_accelerator_host.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/client/gpu_video_decode_accelerator_host.h ('k') | media/gpu/ipc/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
diff --git a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
index e19d347aad0e62accc08b3a9aedd7d5ec0ba3660..630b13ccb07c8594ff68510be9849b272dfb7568 100644
--- a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
+++ b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
@@ -239,17 +239,14 @@ void GpuVideoDecodeAcceleratorHost::OnDismissPictureBuffer(
}
void GpuVideoDecodeAcceleratorHost::OnPictureReady(
- int32_t picture_buffer_id,
- int32_t bitstream_buffer_id,
- const gfx::Rect& visible_rect,
- bool allow_overlay,
- bool size_changed) {
+ const AcceleratedVideoDecoderHostMsg_PictureReady_Params& params) {
DCHECK(CalledOnValidThread());
if (!client_)
return;
- Picture picture(picture_buffer_id, bitstream_buffer_id, visible_rect,
- allow_overlay);
- picture.set_size_changed(size_changed);
+ Picture picture(params.picture_buffer_id, params.bitstream_buffer_id,
+ params.visible_rect, params.color_space,
+ params.allow_overlay);
+ picture.set_size_changed(params.size_changed);
client_->PictureReady(picture);
}
« no previous file with comments | « media/gpu/ipc/client/gpu_video_decode_accelerator_host.h ('k') | media/gpu/ipc/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698