Index: Source/platform/graphics/gpu/DrawingBuffer.cpp |
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp |
index 0ec4bf9179012c1217b92aa3362f4f7d02e1e9df..17bc799f37b90f7ed3ee3fe58b4133880a644960 100644 |
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp |
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp |
@@ -276,8 +276,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; |