Index: Source/platform/graphics/Canvas2DLayerBridge.cpp |
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.cpp b/Source/platform/graphics/Canvas2DLayerBridge.cpp |
index c88d50e5f587629ce31648b1866dda77c1584a1f..9e190d946e312264b390f19b7f2797a975f50ab2 100644 |
--- a/Source/platform/graphics/Canvas2DLayerBridge.cpp |
+++ b/Source/platform/graphics/Canvas2DLayerBridge.cpp |
@@ -414,15 +414,15 @@ bool Canvas2DLayerBridge::prepareMailbox(blink::WebExternalTextureMailbox* outMa |
mailboxInfo->m_status = MailboxInUse; |
mailboxInfo->m_image = image; |
+ ASSERT(mailboxInfo->m_mailbox.syncPoint == 0); |
+ ASSERT(mailboxInfo->m_image.get()); |
+ ASSERT(mailboxInfo->m_image->getTexture()); |
+ |
// Because of texture sharing with the compositor, we must invalidate |
// the state cached in skia so that the deferred copy on write |
// in SkSurface_Gpu does not make any false assumptions. |
mailboxInfo->m_image->getTexture()->textureParamsModified(); |
- ASSERT(mailboxInfo->m_mailbox.syncPoint == 0); |
- ASSERT(mailboxInfo->m_image.get()); |
- ASSERT(mailboxInfo->m_image->getTexture()); |
- |
webContext->bindTexture(GL_TEXTURE_2D, mailboxInfo->m_image->getTexture()->getTextureHandle()); |
webContext->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); |
webContext->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); |