| Index: content/common/gpu/media/dxva_video_decode_accelerator_win.cc
|
| diff --git a/content/common/gpu/media/dxva_video_decode_accelerator_win.cc b/content/common/gpu/media/dxva_video_decode_accelerator_win.cc
|
| index f127bb1c4390b3ff62b313b81a2824096f1182be..7a9aa18d1513e8e4674594359f09d58eb1db5983 100644
|
| --- a/content/common/gpu/media/dxva_video_decode_accelerator_win.cc
|
| +++ b/content/common/gpu/media/dxva_video_decode_accelerator_win.cc
|
| @@ -631,7 +631,7 @@ bool DXVAVideoDecodeAccelerator::DXVAPictureBuffer::CopySurfaceComplete(
|
| GLint current_texture = 0;
|
| glGetIntegerv(GL_TEXTURE_BINDING_2D, ¤t_texture);
|
|
|
| - glBindTexture(GL_TEXTURE_2D, picture_buffer_.texture_id());
|
| + glBindTexture(GL_TEXTURE_2D, picture_buffer_.texture_ids().ids[0]);
|
|
|
| glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
|
|
| @@ -1730,10 +1730,8 @@ void DXVAVideoDecodeAccelerator::RequestPictureBuffers(int width, int height) {
|
| DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
|
| // This task could execute after the decoder has been torn down.
|
| if (GetState() != kUninitialized && client_) {
|
| - client_->ProvidePictureBuffers(
|
| - kNumPictureBuffers,
|
| - gfx::Size(width, height),
|
| - GL_TEXTURE_2D);
|
| + client_->ProvidePictureBuffers(kNumPictureBuffers, 1,
|
| + gfx::Size(width, height), GL_TEXTURE_2D);
|
| }
|
| }
|
|
|
|
|