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

Unified Diff: media/gpu/vt_video_decode_accelerator_mac.cc

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: comments addressed + compile fixes 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/vt_video_decode_accelerator_mac.cc
diff --git a/media/gpu/vt_video_decode_accelerator_mac.cc b/media/gpu/vt_video_decode_accelerator_mac.cc
index ac424e321ca6bdbb95e968f816ee2d719e24b817..86cce00bd5d22f1ea8e1bc38010e75026a9b2007 100644
--- a/media/gpu/vt_video_decode_accelerator_mac.cc
+++ b/media/gpu/vt_video_decode_accelerator_mac.cc
@@ -1077,8 +1077,10 @@ bool VTVideoDecodeAccelerator::SendFrame(const Frame& frame) {
// GpuVideoDecoder so that GpuVideoDecoder can use correct visible size in
// resolution changed. We should find the correct API to get the real
// coded size and fix it.
+ // TODO(hubbe): Use the correct color space. http://crbug.com/647725
client_->PictureReady(Picture(picture_id, frame.bitstream_id,
- gfx::Rect(frame.coded_size), true));
+ gfx::Rect(frame.coded_size), gfx::ColorSpace(),
+ true));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698