From: Matt Sarett Date: Wed, 4 Jan 2017 14:41:09 +0000 (-0500) Subject: Use shared toSRGBD50 matrix in SkPngCodec X-Git-Tag: submit/tizen/20180928.044319~55^2~1018 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dfb4e45ef3d2a54093d11594de4ad22418749d6;p=platform%2Fupstream%2FlibSkiaSharp.git Use shared toSRGBD50 matrix in SkPngCodec BUG=skia: Change-Id: I1d2629ef954d8ac7211cfbb4707125ed175af63c Reviewed-on: https://skia-review.googlesource.com/6553 Reviewed-by: Brian Osman Commit-Queue: Matt Sarett --- diff --git a/src/codec/SkPngCodec.cpp b/src/codec/SkPngCodec.cpp index 56995801fc..ebd0b741b4 100644 --- a/src/codec/SkPngCodec.cpp +++ b/src/codec/SkPngCodec.cpp @@ -9,6 +9,7 @@ #include "SkCodecPriv.h" #include "SkColorPriv.h" #include "SkColorSpace.h" +#include "SkColorSpacePriv.h" #include "SkColorTable.h" #include "SkMath.h" #include "SkOpts.h" @@ -317,12 +318,6 @@ static float png_inverted_fixed_point_to_float(png_fixed_point x) { return 1.0f / png_fixed_point_to_float(x); } -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 -}; - #endif // LIBPNG >= 1.6 // Returns a colorSpace object that represents any color space information in