diff options
author | 2016-03-23 06:50:59 -0700 | |
---|---|---|
committer | 2016-03-23 06:50:59 -0700 | |
commit | 3ec5db42cc145fb11e352eca6474f91d7a4957e3 (patch) | |
tree | 34cdbc141fee49af0ed9a3a7add4837ac7306200 /src/codec/SkJpegCodec.cpp | |
parent | b4a7dc99b1a01cdd5c0cd5913b630436ca696210 (diff) |
Workaround to set the sRGB flag on SkImageGenerator
BUG=skia:4895
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1820413002
Review URL: https://codereview.chromium.org/1820413002
Diffstat (limited to 'src/codec/SkJpegCodec.cpp')
-rw-r--r-- | src/codec/SkJpegCodec.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp index e920de1956..2005d1d694 100644 --- a/src/codec/SkJpegCodec.cpp +++ b/src/codec/SkJpegCodec.cpp @@ -331,13 +331,6 @@ bool SkJpegCodec::onRewind() { * Sets the output color space */ bool SkJpegCodec::setOutputColorSpace(const SkImageInfo& dst) { - const SkImageInfo& src = this->getInfo(); - - // Ensure that the profile type is unchanged - if (dst.profileType() != src.profileType()) { - return false; - } - if (kUnknown_SkAlphaType == dst.alphaType()) { return false; } |