| Index: Source/platform/graphics/ImageBuffer.cpp
|
| diff --git a/Source/platform/graphics/ImageBuffer.cpp b/Source/platform/graphics/ImageBuffer.cpp
|
| index ec447d10ffa1539719c1f2a90d9c428ec9e4b241..4a0fc0ade9dbb0cb57954293f3a3d4390643f220 100644
|
| --- a/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -296,7 +296,7 @@ bool ImageBuffer::getImageData(Multiply multiplied, const IntRect& rect, WTF::Ar
|
| return false;
|
|
|
| if (!isSurfaceValid()) {
|
| - WTF::ArrayBufferContents result(rect.width() * rect.height(), 4, WTF::ArrayBufferContents::ZeroInitialize);
|
| + WTF::ArrayBufferContents result(rect.width() * rect.height(), 4, WTF::ArrayBufferContents::NotShared, WTF::ArrayBufferContents::ZeroInitialize);
|
| result.transfer(contents);
|
| return true;
|
| }
|
| @@ -308,6 +308,7 @@ bool ImageBuffer::getImageData(Multiply multiplied, const IntRect& rect, WTF::Ar
|
| || rect.maxY() > m_surface->size().height();
|
| WTF::ArrayBufferContents result(
|
| rect.width() * rect.height(), 4,
|
| + WTF::ArrayBufferContents::NotShared,
|
| hasStrayArea
|
| ? WTF::ArrayBufferContents::ZeroInitialize
|
| : WTF::ArrayBufferContents::DontInitialize);
|
|
|