Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp |
index cef880da0f1f1bf886c15be64c4dec1bd9304747..7d25cf64e7ad110a77a3709da83b80eabd2621bf 100644 |
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp |
@@ -286,6 +286,8 @@ bool DrawingBuffer::prepareMailbox(WebExternalTextureMailbox* outMailbox, WebExt |
m_gl->ProduceTextureDirectCHROMIUM(frontColorBufferMailbox->textureInfo.textureId, frontColorBufferMailbox->textureInfo.parameters.target, frontColorBufferMailbox->mailbox.name); |
const GLuint64 fenceSync = m_gl->InsertFenceSyncCHROMIUM(); |
+ if (RuntimeEnabledFeatures::webGLImageChromiumEnabled()) |
+ m_gl->DescheduleUntilFinishedCHROMIUM(); |
m_gl->Flush(); |
m_gl->GenSyncTokenCHROMIUM(fenceSync, frontColorBufferMailbox->mailbox.syncToken); |
frontColorBufferMailbox->mailbox.validSyncToken = true; |