| Index: media/filters/gpu_video_decoder.cc
|
| diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
|
| index 9352790e6422bbffab90d59f5ca58db9c126a7d9..9899f8df064f59eee3296b1837d5a6c460e8e7c0 100644
|
| --- a/media/filters/gpu_video_decoder.cc
|
| +++ b/media/filters/gpu_video_decoder.cc
|
| @@ -298,16 +298,19 @@ void GpuVideoDecoder::NotifyInitializeDone() {
|
| }
|
|
|
| void GpuVideoDecoder::ProvidePictureBuffers(uint32 count,
|
| - const gfx::Size& size) {
|
| + const gfx::Size& size,
|
| + uint32 texture_target) {
|
| if (!gvd_loop_proxy_->BelongsToCurrentThread()) {
|
| gvd_loop_proxy_->PostTask(FROM_HERE, base::Bind(
|
| - &GpuVideoDecoder::ProvidePictureBuffers, this, count, size));
|
| + &GpuVideoDecoder::ProvidePictureBuffers, this, count, size,
|
| + texture_target));
|
| return;
|
| }
|
|
|
| std::vector<uint32> texture_ids;
|
| + decoder_texture_target_ = texture_target;
|
| if (!factories_->CreateTextures(
|
| - count, size, &texture_ids, &decoder_texture_target_)) {
|
| + count, size, &texture_ids, decoder_texture_target_)) {
|
| NotifyError(VideoDecodeAccelerator::PLATFORM_FAILURE);
|
| return;
|
| }
|
|
|