Remove legacy matrix defines
authorMatt Sarett <msarett@google.com>
Thu, 22 Dec 2016 21:21:18 +0000 (16:21 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 22 Dec 2016 21:51:18 +0000 (21:51 +0000)
BUG=skia:

Change-Id: Iaa9e402d687df6f24d94fc58d7edcf9fe47d913d
Reviewed-on: https://skia-review.googlesource.com/6460
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>

src/core/SkColorSpacePriv.h

index 5488939099797a1cfabd3fa68e941032496fdca4..9f084e72fc3abd6a8542ade6fad9fa99668018fe 100644 (file)
 
 #define SkColorSpacePrintf(...)
 
-#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
@@ -35,7 +22,6 @@ static constexpr float gAdobeRGB_toXYZD50[] {
     0.3111242f, 0.6256560f, 0.0632197f, // Ry, Gy, Gz
     0.0194811f, 0.0608902f, 0.7448387f, // Rz, Gz, Bz
 };
-#endif
 
 static inline bool color_space_almost_equal(float a, float b) {
     return SkTAbs(a - b) < 0.01f;