Index: content/common/gpu/media/dxva_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.cc b/content/common/gpu/media/dxva_video_decode_accelerator.cc |
index 5574fa7b429a8477796b4dd01242326abe272434..aaf3925a2aa308b58791346394547bb46ab69746 100644 |
--- a/content/common/gpu/media/dxva_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc |
@@ -298,6 +298,7 @@ DXVAVideoDecodeAccelerator::DXVAPictureBuffer::Create( |
"Failed to query ANGLE surface pointer", |
linked_ptr<DXVAPictureBuffer>(NULL)); |
+ // TODO(dshwang): after moving to D3D11, use RGBA surface. crbug.com/438691 |
HRESULT hr = decoder.device_->CreateTexture( |
buffer.size().width(), |
buffer.size().height(), |
@@ -723,6 +724,10 @@ bool DXVAVideoDecodeAccelerator::CanDecodeOnIOThread() { |
return false; |
} |
+GLenum DXVAVideoDecodeAccelerator::GetSurfaceInternalFormat() const { |
+ return GL_BGRA_EXT; |
+} |
+ |
bool DXVAVideoDecodeAccelerator::InitDecoder(media::VideoCodecProfile profile) { |
HMODULE decoder_dll = NULL; |