Chromium Code Reviews| Index: Source/platform/image-decoders/ImageFrame.cpp |
| diff --git a/Source/platform/image-decoders/ImageFrame.cpp b/Source/platform/image-decoders/ImageFrame.cpp |
| index 9363148fbff1dd19894519795717d92567b288b8..8f3308b35a7b6977cb5c0ddf6a42a5941a523df8 100644 |
| --- a/Source/platform/image-decoders/ImageFrame.cpp |
| +++ b/Source/platform/image-decoders/ImageFrame.cpp |
| @@ -108,7 +108,7 @@ bool ImageFrame::setSize(int newWidth, int newHeight) |
| // setSize() should only be called once, it leaks memory otherwise. |
| ASSERT(!width() && !height()); |
| - m_bitmap->bitmap().setConfig(SkBitmap::kARGB_8888_Config, newWidth, newHeight); |
| + m_bitmap->bitmap().setConfig(SkImageInfo::MakeN32Premul(newWidth, newHeight)); |
|
reed1
2014/03/17 13:25:18
In the future, can we change over to using SkPixel
jbroman
2014/03/17 16:46:38
I don't know enough about the discardable/external
|
| if (!m_bitmap->bitmap().allocPixels(m_allocator, 0)) |
| return false; |