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

Unified Diff: skia/ext/image_operations.cc

Issue 331283002: stop calling deprecated setConfig (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: skia/ext/image_operations.cc
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc
index 3bb765ff289b7f5c0e4b1e15720361f689067112..59f929dc33e80abd3ba9a59916fcd1b450bee70c 100644
--- a/skia/ext/image_operations.cc
+++ b/skia/ext/image_operations.cc
@@ -393,8 +393,8 @@ SkBitmap ImageOperations::ResizeSubpixel(const SkBitmap& source,
// Render into subpixels.
SkBitmap result;
- result.setConfig(SkBitmap::kARGB_8888_Config, dest_subset.width(),
- dest_subset.height(), 0, img.alphaType());
+ result.setInfo(SkImageInfo::MakeN32(dest_subset.width(), dest_subset.height(),
+ img.alphaType());
result.allocPixels(allocator, NULL);
if (!result.readyToDraw())
return img;
@@ -509,8 +509,7 @@ SkBitmap ImageOperations::ResizeBasic(const SkBitmap& source,
// Convolve into the result.
SkBitmap result;
- result.setConfig(SkBitmap::kARGB_8888_Config, dest_subset.width(),
- dest_subset.height(), 0, source.alphaType());
+ result.setInfo(SkImageInfo::MakeN32(dest_subset.width(), dest_subset.height(), source.alphaType()));
result.allocPixels(allocator, NULL);
if (!result.readyToDraw())
return SkBitmap();

Powered by Google App Engine
This is Rietveld 408576698