| 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 1a67119863ef8e2758d8e1ab5dc4872db450decb..6cc6696420fcabd97fe02815f757ff213980f571 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -216,7 +216,8 @@ bool ImageBuffer::copyToPlatformTexture(WebGraphicsContext3D* context, Platform3
|
|
|
| mailbox->syncPoint = sharedContext->insertSyncPoint();
|
|
|
| - context->waitSyncPoint(mailbox->syncPoint);
|
| + context->waitSyncPoint(mailbox->syncPoint, mailbox->validSyncToken ? mailbox->syncToken : nullptr);
|
| +
|
| Platform3DObject sourceTexture = context->createAndConsumeTextureCHROMIUM(GL_TEXTURE_2D, mailbox->name);
|
|
|
| // The canvas is stored in a premultiplied format, so unpremultiply if necessary.
|
| @@ -226,7 +227,7 @@ bool ImageBuffer::copyToPlatformTexture(WebGraphicsContext3D* context, Platform3
|
| context->deleteTexture(sourceTexture);
|
|
|
| context->flush();
|
| - sharedContext->waitSyncPoint(context->insertSyncPoint());
|
| + sharedContext->waitSyncPoint(context->insertSyncPoint(), nullptr);
|
|
|
| // Undo grContext texture binding changes introduced in this function
|
| provider->grContext()->resetContext(kTextureBinding_GrGLBackendState);
|
|
|