Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index ea21d7a69593c98df6627ee1360cddfa5669f067..2d2a455e7b7dab047cf7ee93306d664025dc0240 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -1033,7 +1033,9 @@ Error SVGSink::draw(const Src& src, SkBitmap*, SkWStream* dst, SkString*) const |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ |
-RasterSink::RasterSink(SkColorType colorType) : fColorType(colorType) {} |
+RasterSink::RasterSink(SkColorType colorType, SkColorProfileType profileType) |
+ : fColorType(colorType) |
+ , fProfileType(profileType) {} |
Error RasterSink::draw(const Src& src, SkBitmap* dst, SkWStream*, SkString*) const { |
const SkISize size = src.size(); |
@@ -1042,7 +1044,8 @@ Error RasterSink::draw(const Src& src, SkBitmap* dst, SkWStream*, SkString*) con |
(void)SkColorTypeValidateAlphaType(fColorType, alphaType, &alphaType); |
SkMallocPixelRef::ZeroedPRFactory factory; |
- dst->allocPixels(SkImageInfo::Make(size.width(), size.height(), fColorType, alphaType), |
+ dst->allocPixels(SkImageInfo::Make(size.width(), size.height(), |
+ fColorType, alphaType, fProfileType), |
&factory, |
nullptr/*colortable*/); |
SkCanvas canvas(*dst); |