1 
2 
3 /**************************************************************************************************
4  *** This file was autogenerated from GrDSLFPTest_IfStatement.fp; do not modify.
5  **************************************************************************************************/
6 #ifndef GrDSLFPTest_IfStatement_DEFINED
7 #define GrDSLFPTest_IfStatement_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 GrDSLFPTest_IfStatement : public GrFragmentProcessor {
16 public:
Make(float one,float unused)17     static std::unique_ptr<GrFragmentProcessor> Make(float one, float unused) {
18         return std::unique_ptr<GrFragmentProcessor>(new GrDSLFPTest_IfStatement(one, unused));
19     }
20     GrDSLFPTest_IfStatement(const GrDSLFPTest_IfStatement& src);
21     std::unique_ptr<GrFragmentProcessor> clone() const override;
name()22     const char* name() const override { return "DSLFPTest_IfStatement"; }
23     float one;
24     float unused;
25 private:
GrDSLFPTest_IfStatement(float one,float unused)26     GrDSLFPTest_IfStatement(float one, float unused)
27     : INHERITED(kGrDSLFPTest_IfStatement_ClassID, kNone_OptimizationFlags)
28     , one(one)
29     , unused(unused) {
30     }
31     std::unique_ptr<GrGLSLFragmentProcessor> onMakeProgramImpl() const override;
32     void onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const override;
33     bool onIsEqual(const GrFragmentProcessor&) const override;
34 #if GR_TEST_UTILS
35     SkString onDumpInfo() const override;
36 #endif
37     GR_DECLARE_FRAGMENT_PROCESSOR_TEST
38     using INHERITED = GrFragmentProcessor;
39 };
40 #endif
41