| 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 e4d78025043dcdbcc4231b344fe6a0909231574f..06ee438311b681977d1523badb50c930f77ed36f 100644
|
| --- a/content/common/gpu/media/android_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| @@ -787,7 +787,7 @@ void AndroidVideoDecodeAccelerator::DecodeBuffer(
|
| }
|
|
|
| void AndroidVideoDecodeAccelerator::RequestPictureBuffers() {
|
| - client_->ProvidePictureBuffers(kNumPictureBuffers, size_,
|
| + client_->ProvidePictureBuffers(kNumPictureBuffers, 1, size_,
|
| strategy_->GetTextureTarget());
|
| }
|
|
|
| @@ -1041,8 +1041,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);
|
|
|
|
|