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

Unified Diff: media/gpu/dxva_video_decode_accelerator_win.cc

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/dxva_video_decode_accelerator_win.cc
diff --git a/media/gpu/dxva_video_decode_accelerator_win.cc b/media/gpu/dxva_video_decode_accelerator_win.cc
index 01ac4d322579dccd3d97728f162be5bf83d6d463..7a5b49ac299ade868add2bbbf5cc1a324fe8fd24 100644
--- a/media/gpu/dxva_video_decode_accelerator_win.cc
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc
@@ -1881,8 +1881,9 @@ void DXVAVideoDecodeAccelerator::RequestPictureBuffers(int width, int height) {
// They're shared to ANGLE using EGL_NV_stream_consumer_gltexture_yuv, so
// they need to be GL_TEXTURE_EXTERNAL_OES.
client_->ProvidePictureBuffers(
- kNumPictureBuffers, share_nv12_textures_ ? 2 : 1,
- gfx::Size(width, height),
+ kNumPictureBuffers,
+ share_nv12_textures_ ? PIXEL_FORMAT_NV12 : PIXEL_FORMAT_UNKNOWN,
+ share_nv12_textures_ ? 2 : 1, gfx::Size(width, height),
share_nv12_textures_ ? GL_TEXTURE_EXTERNAL_OES : GL_TEXTURE_2D);
}
}

Powered by Google App Engine
This is Rietveld 408576698