| Index: Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| index ef349001ef2377de78cb5a94b580bd712aeb6ef4..02ec5e6c340bb2e132a028a480c41be4e58d4a5b 100644
|
| --- a/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| +++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| @@ -208,10 +208,6 @@ void DrawingBuffer::freeRecycledMailboxes()
|
|
|
| bool DrawingBuffer::prepareMailbox(WebExternalTextureMailbox* outMailbox, WebExternalBitmap* bitmap)
|
| {
|
| - ASSERT(!m_isHidden);
|
| - if (!m_contentsChanged)
|
| - return false;
|
| -
|
| if (m_destructionInProgress) {
|
| // It can be hit in the following sequence.
|
| // 1. WebGL draws something.
|
| @@ -220,6 +216,9 @@ bool DrawingBuffer::prepareMailbox(WebExternalTextureMailbox* outMailbox, WebExt
|
| // 4. Here.
|
| return false;
|
| }
|
| + ASSERT(!m_isHidden);
|
| + if (!m_contentsChanged)
|
| + return false;
|
|
|
| // Resolve the multisampled buffer into m_colorBuffer texture.
|
| if (m_multisampleMode != None)
|
|
|