1 2 3 /************************************************************************************************** 4 *** This file was autogenerated from GrInlinedFunction.fp; do not modify. 5 **************************************************************************************************/ 6 #ifndef GrInlinedFunction_DEFINED 7 #define GrInlinedFunction_DEFINED 8 9 #include "include/core/SkM44.h" 10 #include "include/core/SkTypes.h" 11 12 13 #include "src/gpu/GrFragmentProcessor.h" 14 15 class GrInlinedFunction : public GrFragmentProcessor { 16 public: Make()17 static std::unique_ptr<GrFragmentProcessor> Make() { 18 return std::unique_ptr<GrFragmentProcessor>(new GrInlinedFunction()); 19 } 20 GrInlinedFunction(const GrInlinedFunction& src); 21 std::unique_ptr<GrFragmentProcessor> clone() const override; name()22 const char* name() const override { return "InlinedFunction"; } 23 bool usesExplicitReturn() const override; 24 private: GrInlinedFunction()25 GrInlinedFunction() 26 : INHERITED(kGrInlinedFunction_ClassID, kNone_OptimizationFlags) { 27 } 28 GrGLSLFragmentProcessor* onCreateGLSLInstance() const override; 29 void onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const override; 30 bool onIsEqual(const GrFragmentProcessor&) const override; 31 #if GR_TEST_UTILS 32 SkString onDumpInfo() const override; 33 #endif 34 GR_DECLARE_FRAGMENT_PROCESSOR_TEST 35 using INHERITED = GrFragmentProcessor; 36 }; 37 #endif 38