aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-12-13 15:44:40 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-13 21:34:30 +0000
commit411b8ea74d66d08252d9b617d7e7d458604dbc2e (patch)
treedc0f3e55e2ccb8b0fa7148745b44dae8e251b746 /src/codec
parentb67821da87ffa711c07af75ee618b13dbccd6b7d (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.cpp4
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;
}