8#ifndef SkColorShader_DEFINED
9#define SkColorShader_DEFINED
48 *
lum = SkColor4f::FromColor(fColor);
61 bool isOpaque()
const override {
return fColor.isOpaque(); }
static constexpr SkColor kColor
void SkRegisterColor4ShaderFlattenable()
void SkRegisterColorShaderFlattenable()
#define SK_FLATTENABLE_HOOKS(type)
bool isOpaque() const override
bool isConstant() const override
SkColor4Shader(const SkColor4f &, sk_sp< SkColorSpace >)
sk_sp< SkColorSpace > colorSpace() const
ShaderType type() const override
bool isConstant() const override
ShaderType type() const override
bool isOpaque() const override
static float lum(float r, float g, float b)