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

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: rebase + android typo 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
« no previous file with comments | « skia/ext/convolver_unittest.cc ('k') | skia/ext/image_operations_bench.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/image_operations.cc
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc
index 3bb765ff289b7f5c0e4b1e15720361f689067112..bcf01dd0355ee34ed6c81766a7585adc7373d1ed 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();
« no previous file with comments | « skia/ext/convolver_unittest.cc ('k') | skia/ext/image_operations_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698