X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fplatform%2Fimage-decoders%2FImageFrame.cpp;h=4576eafffc3792fcc78fc810c0cfd7d2a25f9b57;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=ed4538889ce5267f576d31a56eef14d4c8c43a32;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp b/src/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp index ed45388..4576eaf 100644 --- a/src/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp +++ b/src/third_party/WebKit/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();