| Index: content/renderer/media/webmediaplayer_impl.cc
|
| diff --git a/content/renderer/media/webmediaplayer_impl.cc b/content/renderer/media/webmediaplayer_impl.cc
|
| index a6b0fd96e7ed66b2a6f31b8691fa009709662e88..4a318481a57212718341a5f53e134cbeb9c4c661 100644
|
| --- a/content/renderer/media/webmediaplayer_impl.cc
|
| +++ b/content/renderer/media/webmediaplayer_impl.cc
|
| @@ -621,12 +621,9 @@ bool WebMediaPlayerImpl::copyVideoTextureToPlatformTexture(
|
| DCHECK_EQ(static_cast<GLuint>(bound_texture), texture);
|
| #endif
|
|
|
| - uint32 source_texture = web_graphics_context->createTexture();
|
| -
|
| web_graphics_context->waitSyncPoint(mailbox_holder->sync_point);
|
| - web_graphics_context->bindTexture(GL_TEXTURE_2D, source_texture);
|
| - web_graphics_context->consumeTextureCHROMIUM(GL_TEXTURE_2D,
|
| - mailbox_holder->mailbox.name);
|
| + uint32 source_texture = web_graphics_context->createAndConsumeTextureCHROMIUM(
|
| + GL_TEXTURE_2D, mailbox_holder->mailbox.name);
|
|
|
| // The video is stored in a unmultiplied format, so premultiply
|
| // if necessary.
|
| @@ -647,9 +644,6 @@ bool WebMediaPlayerImpl::copyVideoTextureToPlatformTexture(
|
| web_graphics_context->pixelStorei(GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
|
| false);
|
|
|
| - // Restore the state for TEXTURE_2D binding point as mentioned above.
|
| - web_graphics_context->bindTexture(GL_TEXTURE_2D, texture);
|
| -
|
| web_graphics_context->deleteTexture(source_texture);
|
| web_graphics_context->flush();
|
| video_frame->AppendReleaseSyncPoint(web_graphics_context->insertSyncPoint());
|
|
|