aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkJpegCodec.cpp
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-03-23 06:50:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-23 06:50:59 -0700
commit3ec5db42cc145fb11e352eca6474f91d7a4957e3 (patch)
tree34cdbc141fee49af0ed9a3a7add4837ac7306200 /src/codec/SkJpegCodec.cpp
parentb4a7dc99b1a01cdd5c0cd5913b630436ca696210 (diff)
Workaround to set the sRGB flag on SkImageGenerator
Diffstat (limited to 'src/codec/SkJpegCodec.cpp')
-rw-r--r--src/codec/SkJpegCodec.cpp7
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;
}