1 2 3 /************************************************************************************************** 4 *** This file was autogenerated from GrSectionFields.fp; do not modify. 5 **************************************************************************************************/ 6 #include "GrSectionFields.h" 7 8 #include "src/core/SkUtils.h" 9 #include "src/gpu/GrTexture.h" 10 #include "src/gpu/glsl/GrGLSLFragmentProcessor.h" 11 #include "src/gpu/glsl/GrGLSLFragmentShaderBuilder.h" 12 #include "src/gpu/glsl/GrGLSLProgramBuilder.h" 13 #include "src/sksl/SkSLCPP.h" 14 #include "src/sksl/SkSLUtil.h" 15 class GrGLSLSectionFields : public GrGLSLFragmentProcessor { 16 public: GrGLSLSectionFields()17 GrGLSLSectionFields() {} emitCode(EmitArgs & args)18 void emitCode(EmitArgs& args) override { 19 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; 20 const GrSectionFields& _outer = args.fFp.cast<GrSectionFields>(); 21 (void) _outer; 22 fragBuilder->codeAppendf( 23 R"SkSL(return half4(1.0); 24 )SkSL" 25 ); 26 } 27 private: onSetData(const GrGLSLProgramDataManager & pdman,const GrFragmentProcessor & _proc)28 void onSetData(const GrGLSLProgramDataManager& pdman, const GrFragmentProcessor& _proc) override { 29 } 30 }; onMakeProgramImpl() const31std::unique_ptr<GrGLSLFragmentProcessor> GrSectionFields::onMakeProgramImpl() const { 32 return std::make_unique<GrGLSLSectionFields>(); 33 } onGetGLSLProcessorKey(const GrShaderCaps & caps,GrProcessorKeyBuilder * b) const34void GrSectionFields::onGetGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const { 35 } onIsEqual(const GrFragmentProcessor & other) const36bool GrSectionFields::onIsEqual(const GrFragmentProcessor& other) const { 37 const GrSectionFields& that = other.cast<GrSectionFields>(); 38 (void) that; 39 return true; 40 } 41 #if GR_TEST_UTILS onDumpInfo() const42SkString GrSectionFields::onDumpInfo() const { 43 44 } 45 #endif 46