Index: Source/platform/graphics/gpu/DrawingBuffer.cpp |
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp |
index 796ba7ce1ca674afdda04b83722a55bae88ec02d..5256813cf36b61a607d35f39a781e407f41b4e9c 100644 |
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp |
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp |
@@ -275,8 +275,13 @@ bool DrawingBuffer::prepareMailbox(blink::WebExternalTextureMailbox* outMailbox, |
return true; |
} |
-void DrawingBuffer::mailboxReleased(const blink::WebExternalTextureMailbox& mailbox) |
+void DrawingBuffer::mailboxReleased(const blink::WebExternalTextureMailbox& mailbox, bool lostResource) |
{ |
+ if (lostResource) { |
+ // TODO(hmin): handle the case if the resource is lost. |
+ return; |
+ } |
+ |
if (m_destructionInProgress) { |
mailboxReleasedWhileDestructionInProgress(mailbox); |
return; |