diff options
author | reed <reed@google.com> | 2016-06-17 09:26:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-17 09:26:41 -0700 |
commit | 960b2d69bbae19dc814f06d841b94ef71e291b48 (patch) | |
tree | ed69d0f4d45e4e7e223a1fc9d8d631addce15e43 /src/core/SkBitmapScaler.cpp | |
parent | 7d2f607ac16788eac985d4738b8cb901971f33c3 (diff) |
remove colorprofiletype from imageinfo
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2075853002
Review-Url: https://codereview.chromium.org/2075853002
Diffstat (limited to 'src/core/SkBitmapScaler.cpp')
-rw-r--r-- | src/core/SkBitmapScaler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp index fb72875443..5edb1b23e1 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; |