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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 1822983002: Support external buffer import in VDA interface and add a V4L2SVDA impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 6100bdc09e1b839cd3db14ffd2b7510ed4e134ad..3f593317a1050b8a5709f9e778f9da1ba07a15e0 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -512,10 +512,8 @@ void GpuVideoDecoder::PictureReady(const media::Picture& picture) {
DCHECK(decoder_texture_target_);
- bool opaque = IsOpaque(config_.format());
-
scoped_refptr<VideoFrame> frame(VideoFrame::WrapNativeTexture(
- opaque ? PIXEL_FORMAT_XRGB : PIXEL_FORMAT_ARGB,
+ vda_->GetOutputFormat(),
gpu::MailboxHolder(pb.texture_mailbox(), gpu::SyncToken(),
decoder_texture_target_),
BindToCurrentLoop(base::Bind(

Powered by Google App Engine
This is Rietveld 408576698