diff options
author | Brian Osman <brianosman@google.com> | 2017-12-13 15:44:40 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-13 21:34:30 +0000 |
commit | 411b8ea74d66d08252d9b617d7e7d458604dbc2e (patch) | |
tree | dc0f3e55e2ccb8b0fa7148745b44dae8e251b746 /src/codec | |
parent | b67821da87ffa711c07af75ee618b13dbccd6b7d (diff) |
Remove SkColorSpace_Base::MakeNamed, along with most uses of Adobe RGB
Bug: skia:
Change-Id: If5935eac48184bc8cbe4db21dac4d6033a8704e6
Reviewed-on: https://skia-review.googlesource.com/84200
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/codec')
-rw-r--r-- | src/codec/SkRawCodec.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp index 5f3d469b5d..4fda120bb8 100644 --- a/src/codec/SkRawCodec.cpp +++ b/src/codec/SkRawCodec.cpp @@ -7,6 +7,7 @@ #include "SkCodec.h" #include "SkCodecPriv.h" +#include "SkColorSpacePriv.h" #include "SkColorData.h" #include "SkData.h" #include "SkJpegCodec.h" @@ -654,7 +655,8 @@ std::unique_ptr<SkCodec> SkRawCodec::MakeFromStream(std::unique_ptr<SkStream> st colorSpace = SkColorSpace::MakeSRGB(); break; case ::piex::PreviewImageData::kAdobeRgb: - colorSpace = SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named); + colorSpace = SkColorSpace::MakeRGB(g2Dot2_TransferFn, + SkColorSpace::kAdobeRGB_Gamut); break; } |