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

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: revert OWNERS Created 4 years, 3 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: 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..72543000511739e3f56eabb91e4115d923cd2aa6 100644
--- a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
+++ b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
@@ -242,14 +242,14 @@ 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 gfx::ColorSpace& color_space,
+ const std::pair<bool, bool>& allow_overlay_and_size_changed) {
DCHECK(CalledOnValidThread());
if (!client_)
return;
Picture picture(picture_buffer_id, bitstream_buffer_id, visible_rect,
- allow_overlay);
- picture.set_size_changed(size_changed);
+ color_space, allow_overlay_and_size_changed.first);
+ picture.set_size_changed(allow_overlay_and_size_changed.second);
client_->PictureReady(picture);
}

Powered by Google App Engine
This is Rietveld 408576698