8#ifndef GrGradientShader_DEFINE
9#define GrGradientShader_DEFINE
16#if defined(GR_TEST_UTILS)
24 std::unique_ptr<GrFragmentProcessor> layout,
25 const SkMatrix* overrideMatrix =
nullptr);
31#if defined(GR_TEST_UTILS)
39 inline static constexpr int kMaxRandomGradientColors = 5;
43 inline static constexpr SkScalar kGradientScale = 256.0f;
48 SkColor fColors[kMaxRandomGradientColors];
49 SkColor4f fColors4f[kMaxRandomGradientColors];
51 SkScalar fStopStorage[kMaxRandomGradientColors];
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
std::unique_ptr< GrFragmentProcessor > MakeGradientFP(const SkGradientBaseShader &shader, const GrFPArgs &args, const SkShaders::MatrixRec &mRec, std::unique_ptr< GrFragmentProcessor > layout, const SkMatrix *overrideMatrix)
std::unique_ptr< GrFragmentProcessor > MakeLinear(const SkLinearGradient &shader, const GrFPArgs &args, const SkShaders::MatrixRec &mRec)