| Index: src/core/SkBitmapScaler.cpp
|
| diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp
|
| index fb72875443ddd5f663038e567c95090c86d55cb8..5edb1b23e16d8f60fa2c03f3a9e7e3810f122d42 100644
|
| --- a/src/core/SkBitmapScaler.cpp
|
| +++ b/src/core/SkBitmapScaler.cpp
|
| @@ -252,8 +252,8 @@ bool SkBitmapScaler::Resize(SkBitmap* resultPtr, const SkPixmap& source, ResizeM
|
| SkBitmap result;
|
| // Note: pass along the profile information even thought this is no the right answer because
|
| // this could be scaling in sRGB.
|
| - result.setInfo(SkImageInfo::MakeN32(destWidth, destHeight,
|
| - source.alphaType(), source.info().profileType()));
|
| + result.setInfo(SkImageInfo::MakeN32(destWidth, destHeight, source.alphaType(),
|
| + sk_ref_sp(source.info().colorSpace())));
|
| result.allocPixels(allocator, nullptr);
|
|
|
| SkPixmap resultPM;
|
|
|