| Index: content/common/gpu/media/android_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| index 1606e28b10538a9e28032e4806d289f6dc448b42..638f0d9b166c9d9a98dbe00759f6bdfc77ec8016 100644
|
| --- a/content/common/gpu/media/android_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| @@ -786,7 +786,7 @@ void AndroidVideoDecodeAccelerator::DecodeBuffer(
|
| }
|
|
|
| void AndroidVideoDecodeAccelerator::RequestPictureBuffers() {
|
| - client_->ProvidePictureBuffers(kNumPictureBuffers,
|
| + client_->ProvidePictureBuffers(kNumPictureBuffers, 1,
|
| strategy_->GetPictureBufferSize(),
|
| strategy_->GetTextureTarget());
|
| }
|
| @@ -1038,8 +1038,10 @@ gpu::gles2::TextureRef* AndroidVideoDecodeAccelerator::GetTextureForPicture(
|
| gl_decoder_->GetContextGroup()->texture_manager();
|
| RETURN_ON_FAILURE(this, texture_manager, "Null texture_manager",
|
| ILLEGAL_STATE, nullptr);
|
| +
|
| + DCHECK_LE(1u, picture_buffer.internal_texture_ids().size());
|
| gpu::gles2::TextureRef* texture_ref =
|
| - texture_manager->GetTexture(picture_buffer.internal_texture_id());
|
| + texture_manager->GetTexture(picture_buffer.internal_texture_ids()[0]);
|
| RETURN_ON_FAILURE(this, texture_manager, "Null texture_ref", ILLEGAL_STATE,
|
| nullptr);
|
|
|
|
|