Index: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp |
index 3011d5596be6ebf3489c044d9c7b3a0a26f8013e..5068b6ad247507c1315055b5fa873b47b9483b93 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp |
@@ -522,7 +522,9 @@ void Canvas2DLayerBridge::mailboxReleased(const WebExternalTextureMailbox& mailb |
// Invalidate texture state in case the compositor altered it since the copy-on-write. |
if (releasedMailboxInfo->m_image) { |
if (mailbox.syncPoint) { |
- context()->waitSyncPoint(mailbox.syncPoint); |
+ context()->waitSyncPoint(mailbox.syncPoint, nullptr); |
+ } else if (mailbox.validSyncToken) { |
+ context()->waitSyncPoint(0, mailbox.syncToken); |
} |
GrTexture* texture = releasedMailboxInfo->m_image->getTexture(); |
if (texture) { |