Chromium Code Reviews| Index: content/common/gpu/media/gpu_video_decode_accelerator.cc |
| diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| index df8ec5bc0ec8c72f35ba64dea56b0f1952197b62..59cad8c9ca2f1f0fb76a8f012bd4fd959a882b13 100644 |
| --- a/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| +++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| @@ -395,6 +395,14 @@ void GpuVideoDecodeAccelerator::OnAssignPictureBuffers( |
| NotifyError(media::VideoDecodeAccelerator::INVALID_ARGUMENT); |
| return; |
| } |
| + |
| + // FIXME: after moving to D3D11, remove this workaround. crbug.com/438691 |
|
scherkus (not reviewing)
2014/12/08 22:51:36
nit: chromium typically uses the TODO(username):
dshwang
2014/12/09 09:36:02
Done. Yes, of course :)
|
| + GLenum format = |
| + video_decode_accelerator_.get()->GetSurfaceInternalFormat(); |
| + if (format != GL_RGBA) { |
| + texture_manager->SetLevelInfo(texture_ref, texture_target_, 0, format, |
| + width, height, 1, 0, format, 0, false); |
| + } |
| } |
| uint32 service_texture_id; |
| if (!command_decoder->GetServiceTextureId( |