| Index: Source/platform/image-decoders/ImageFrame.cpp
|
| diff --git a/Source/platform/image-decoders/ImageFrame.cpp b/Source/platform/image-decoders/ImageFrame.cpp
|
| index ed4538889ce5267f576d31a56eef14d4c8c43a32..4576eafffc3792fcc78fc810c0cfd7d2a25f9b57 100644
|
| --- a/Source/platform/image-decoders/ImageFrame.cpp
|
| +++ b/Source/platform/image-decoders/ImageFrame.cpp
|
| @@ -107,7 +107,7 @@ bool ImageFrame::setSize(int newWidth, int newHeight)
|
| ASSERT(!width() && !height());
|
|
|
| m_bitmap.setInfo(SkImageInfo::MakeN32Premul(newWidth, newHeight));
|
| - if (!m_bitmap.allocPixels(m_allocator, 0))
|
| + if (!m_bitmap.tryAllocPixels(m_allocator, 0))
|
| return false;
|
|
|
| zeroFillPixelData();
|
|
|