aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkColorSpace.cpp
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2016-12-19 18:37:34 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-20 14:38:38 +0000
commit1bfcf887553a9d39b25f0d8c408b78841cd9d8fc (patch)
tree9f9f10119e05c83ba31c2a7bc7acbe8a8a7cc005 /src/core/SkColorSpace.cpp
parentc468963b967b5e8cde4ed320f7130a9d703c2a4e (diff)
Implement SkICC::WriteICC()
BUG=skia: Change-Id: Idd950c3da2c517780b24e312a4e7cc16ee413c99 Reviewed-on: https://skia-review.googlesource.com/6270 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'src/core/SkColorSpace.cpp')
-rw-r--r--src/core/SkColorSpace.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/core/SkColorSpace.cpp b/src/core/SkColorSpace.cpp
index 54c85f1330..f6cbf0acac 100644
--- a/src/core/SkColorSpace.cpp
+++ b/src/core/SkColorSpace.cpp
@@ -87,32 +87,6 @@ SkColorSpace_Base::SkColorSpace_Base(sk_sp<SkData> profileData)
: fProfileData(std::move(profileData))
{}
-#if defined(SK_USE_LEGACY_D50_MATRICES)
-static constexpr float gSRGB_toXYZD50[] {
- 0.4358f, 0.3853f, 0.1430f, // Rx, Gx, Bx
- 0.2224f, 0.7170f, 0.0606f, // Ry, Gy, Gz
- 0.0139f, 0.0971f, 0.7139f, // Rz, Gz, Bz
-};
-
-static constexpr float gAdobeRGB_toXYZD50[] {
- 0.6098f, 0.2052f, 0.1492f, // Rx, Gx, Bx
- 0.3111f, 0.6257f, 0.0632f, // Ry, Gy, By
- 0.0195f, 0.0609f, 0.7448f, // Rz, Gz, Bz
-};
-#else
-static constexpr float gSRGB_toXYZD50[] {
- 0.4360747f, 0.3850649f, 0.1430804f, // Rx, Gx, Bx
- 0.2225045f, 0.7168786f, 0.0606169f, // Ry, Gy, Gz
- 0.0139322f, 0.0971045f, 0.7141733f, // Rz, Gz, Bz
-};
-
-static constexpr float gAdobeRGB_toXYZD50[] {
- 0.6097559f, 0.2052401f, 0.1492240f, // Rx, Gx, Bx
- 0.3111242f, 0.6256560f, 0.0632197f, // Ry, Gy, Gz
- 0.0194811f, 0.0608902f, 0.7448387f, // Rz, Gz, Bz
-};
-#endif
-
/**
* Checks if our toXYZ matrix is a close match to a known color gamut.
*