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, |
Pawel Osciak
2016/05/18 07:32:31
Should we report RGBA instead of UNKNOWN in genera
|
+ share_nv12_textures_ ? 2 : 1, gfx::Size(width, height), |
share_nv12_textures_ ? GL_TEXTURE_EXTERNAL_OES : GL_TEXTURE_2D); |
} |
} |