Lines Matching refs:GrConvexPolyEffect
9 #include "src/gpu/effects/GrConvexPolyEffect.h"
17 GrFPResult GrConvexPolyEffect::Make(std::unique_ptr<GrFragmentProcessor> inputFP,
83 return GrConvexPolyEffect::Make(std::move(inputFP), type, n, edges);
86 GrConvexPolyEffect::~GrConvexPolyEffect() {}
88 SkString GrConvexPolyEffect::getShaderDfxInfo() const
95 void GrConvexPolyEffect::onAddToKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const {
101 std::unique_ptr<GrFragmentProcessor::ProgramImpl> GrConvexPolyEffect::onMakeProgramImpl() const {
105 const GrConvexPolyEffect& cpe = args.fFp.cast<GrConvexPolyEffect>();
137 const GrConvexPolyEffect& cpe = fp.cast<GrConvexPolyEffect>();
146 std::array<float, 3 * GrConvexPolyEffect::kMaxEdges> fPrevEdges = {SK_FloatNaN};
152 GrConvexPolyEffect::GrConvexPolyEffect(std::unique_ptr<GrFragmentProcessor> inputFP,
173 GrConvexPolyEffect::GrConvexPolyEffect(const GrConvexPolyEffect& that)
180 std::unique_ptr<GrFragmentProcessor> GrConvexPolyEffect::clone() const {
181 return std::unique_ptr<GrFragmentProcessor>(new GrConvexPolyEffect(*this));
184 bool GrConvexPolyEffect::onIsEqual(const GrFragmentProcessor& other) const {
185 const GrConvexPolyEffect& cpe = other.cast<GrConvexPolyEffect>();
194 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrConvexPolyEffect);
197 std::unique_ptr<GrFragmentProcessor> GrConvexPolyEffect::TestCreate(GrProcessorTestData* d) {
209 std::tie(success, fp) = GrConvexPolyEffect::Make(std::move(fp), edgeType, count, edges);