Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1501)

Unified Diff: Source/platform/image-decoders/ImageFrame.cpp

Issue 201213002: Remove uses of SkBitmap::Config (deprecated) from core/ and platform/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698