#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/gfx/skia_color_space_util.h"
#include <algorithm>
#include <cmath>
#include <vector>
#include "base/check.h"
namespace gfx {
float SkTransferFnEvalUnclamped(const skcms_TransferFunction& fn, float x) { … }
namespace {
float SkTransferFnEval(const skcms_TransferFunction& fn, float x) { … }
}
skcms_TransferFunction SkTransferFnInverse(const skcms_TransferFunction& fn) { … }
bool SkTransferFnsApproximatelyCancel(const skcms_TransferFunction& a,
const skcms_TransferFunction& b) { … }
bool SkTransferFnIsApproximatelyIdentity(const skcms_TransferFunction& a) { … }
bool SkM44IsApproximatelyIdentity(const SkM44& m, float epsilon) { … }
skcms_Matrix3x3 COLOR_SPACE_EXPORT SkcmsMatrix3x3FromSkM44(const SkM44& in) { … }
SkM44 COLOR_SPACE_EXPORT SkM44FromSkcmsMatrix3x3(const skcms_Matrix3x3& in) { … }
SkM44 SkM44FromRowMajor3x3(const float* data) { … }
}