8#ifndef SkColorMatrix_DEFINED
9#define SkColorMatrix_DEFINED
25 constexpr SkColorMatrix(
float m00,
float m01,
float m02,
float m03,
float m04,
26 float m10,
float m11,
float m12,
float m13,
float m14,
27 float m20,
float m21,
float m22,
float m23,
float m24,
28 float m30,
float m31,
float m32,
float m33,
float m34)
29 : fMat { m00, m01, m02, m03, m04,
30 m10, m11, m12, m13, m14,
31 m20, m21, m22, m23, m24,
32 m30, m31, m32, m33, m34 } {}
38 void setScale(
float rScale,
float gScale,
float bScale,
float aScale = 1.0f);
40 void postTranslate(
float dr,
float dg,
float db,
float da);
46 void setSaturation(
float sat);
52 std::array<float, 20> fMat;
constexpr SkColorMatrix(float m00, float m01, float m02, float m03, float m04, float m10, float m11, float m12, float m13, float m14, float m20, float m21, float m22, float m23, float m24, float m30, float m31, float m32, float m33, float m34)
void postConcat(const SkColorMatrix &mat)
void preConcat(const SkColorMatrix &mat)
constexpr SkColorMatrix()
void setRowMajor(const float src[20])
void getRowMajor(float dst[20]) const
static float sat(float r, float g, float b)