aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapScaler.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-06-17 09:26:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-17 09:26:41 -0700
commit960b2d69bbae19dc814f06d841b94ef71e291b48 (patch)
treeed69d0f4d45e4e7e223a1fc9d8d631addce15e43 /src/core/SkBitmapScaler.cpp
parent7d2f607ac16788eac985d4738b8cb901971f33c3 (diff)
remove colorprofiletype from imageinfo
Diffstat (limited to 'src/core/SkBitmapScaler.cpp')
-rw-r--r--src/core/SkBitmapScaler.cpp4
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;