Chromium Code Reviews| Index: src/core/SkBitmapScaler.cpp |
| diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp |
| index 398e20c24622d707018a7ddef1c513e366de33bd..fb72875443ddd5f663038e567c95090c86d55cb8 100644 |
| --- a/src/core/SkBitmapScaler.cpp |
| +++ b/src/core/SkBitmapScaler.cpp |
| @@ -250,7 +250,10 @@ bool SkBitmapScaler::Resize(SkBitmap* resultPtr, const SkPixmap& source, ResizeM |
| } |
| SkBitmap result; |
| - result.setInfo(SkImageInfo::MakeN32(destWidth, destHeight, source.alphaType())); |
| + // Note: pass along the profile information even thought this is no the right answer because |
|
reed1
2016/04/18 20:37:08
possibly use
source.info().makeWH(destWidth, dest
|
| + // this could be scaling in sRGB. |
| + result.setInfo(SkImageInfo::MakeN32(destWidth, destHeight, |
| + source.alphaType(), source.info().profileType())); |
| result.allocPixels(allocator, nullptr); |
| SkPixmap resultPM; |