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..c113012960de450752b59f2fe2ab9ccf0b0bbded 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 = channel_->CreateStreamTexture(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); |