| Index: content/renderer/media/android/stream_texture_factory_impl.cc
|
| diff --git a/content/renderer/media/android/stream_texture_factory_impl.cc b/content/renderer/media/android/stream_texture_factory_impl.cc
|
| index a17531b2c91a35c97b4907e041e74192126602c3..3d9fd9d0176bd2da6d7b730624f89037f5f95480 100644
|
| --- a/content/renderer/media/android/stream_texture_factory_impl.cc
|
| +++ b/content/renderer/media/android/stream_texture_factory_impl.cc
|
| @@ -146,10 +146,11 @@ unsigned StreamTextureFactoryImpl::CreateStreamTexture(
|
| gpu::Mailbox* texture_mailbox) {
|
| GLuint stream_id = 0;
|
| gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL();
|
| + int32 image_id = channel_->ReserveImageId();
|
| gl->GenTextures(1, texture_id);
|
| -
|
| - stream_id = gl->CreateStreamTextureCHROMIUM(*texture_id);
|
| -
|
| + stream_id = gl->CreateStreamTextureImageCHROMIUM(image_id);
|
| + gl->BindTexture(texture_target, *texture_id);
|
| + gl->BindTexImage2DCHROMIUM(texture_target, image_id);
|
| gl->GenMailboxCHROMIUM(texture_mailbox->name);
|
| gl->ProduceTextureDirectCHROMIUM(
|
| *texture_id, texture_target, texture_mailbox->name);
|
|
|