1 2 3 /************************************************************************************************** 4 *** This file was autogenerated from GrConditionalInUniform.fp; do not modify. 5 **************************************************************************************************/ 6 #ifndef GrConditionalInUniform_DEFINED 7 #define GrConditionalInUniform_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 GrConditionalInUniform : public GrFragmentProcessor { 16 public: Make(bool test,SkPMColor4f color)17 static std::unique_ptr<GrFragmentProcessor> Make(bool test, SkPMColor4f color) { 18 return std::unique_ptr<GrFragmentProcessor>(new GrConditionalInUniform(test, color)); 19 } 20 GrConditionalInUniform(const GrConditionalInUniform& src); 21 std::unique_ptr<GrFragmentProcessor> clone() const override; name()22 const char* name() const override { return "ConditionalInUniform"; } 23 bool test; 24 SkPMColor4f color; 25 private: GrConditionalInUniform(bool test,SkPMColor4f color)26 GrConditionalInUniform(bool test, SkPMColor4f color) 27 : INHERITED(kGrConditionalInUniform_ClassID, kNone_OptimizationFlags) 28 , test(test) 29 , color(color) { 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