| Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| index 9727558b3f3eab4f11ee4869560fcce8d02381f6..53f34f2648dd984097a3c7e1c1baab1f54dd2c32 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -254,6 +254,9 @@ bool ImageBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl, GLuint t
|
| GLbyte syncToken[24];
|
| gl->GenSyncTokenCHROMIUM(contextFenceSync, syncToken);
|
| sharedGL->WaitSyncTokenCHROMIUM(syncToken);
|
| + // This disassociates the texture from the mailbox to avoid leaking the
|
| + // mapping between the two.
|
| + sharedGL->ProduceTextureDirectCHROMIUM(0, textureInfo->fTarget, mailbox->name);
|
|
|
| // Undo grContext texture binding changes introduced in this function
|
| provider->grContext()->resetContext(kTextureBinding_GrGLBackendState);
|
|
|