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 ccac5a91195d1b4438e292df6cbc68c10032597a..446b3683989a4d7069b4462b5749b0bc662a17f3 100644 |
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp |
@@ -889,7 +889,7 @@ bool DrawingBuffer::paintRenderingResultsToImageData(int& width, int& height, So |
if (dataSize.hasOverflowed()) |
return false; |
- WTF::ArrayBufferContents pixels(width * height, 4, WTF::ArrayBufferContents::NotShared, WTF::ArrayBufferContents::DontInitialize); |
+ WTF::ArrayBufferContents pixels(width * height, 4, WTF::ArrayBufferContents::NotShared, WTF::ArrayBufferContents::DontInitialize, WTF::ArrayBufferContents::NullDataIfOutOfMemory); |
GLint fbo = 0; |
if (sourceBuffer == FrontBuffer && m_frontColorBuffer.texInfo.textureId) { |