• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* HELLO WORLD */
2 
3 /**************************************************************************************************
4  *** This file was autogenerated from GrHelloWorld.fp; do not modify.
5  **************************************************************************************************/
6 #include "GrHelloWorld.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 GrGLSLHelloWorld : public GrGLSLFragmentProcessor {
16 public:
GrGLSLHelloWorld()17     GrGLSLHelloWorld() {}
emitCode(EmitArgs & args)18     void emitCode(EmitArgs& args) override {
19         GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder;
20         const GrHelloWorld& _outer = args.fFp.cast<GrHelloWorld>();
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() const31 std::unique_ptr<GrGLSLFragmentProcessor> GrHelloWorld::onMakeProgramImpl() const {
32     return std::make_unique<GrGLSLHelloWorld>();
33 }
onGetGLSLProcessorKey(const GrShaderCaps & caps,GrProcessorKeyBuilder * b) const34 void GrHelloWorld::onGetGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const {
35 }
onIsEqual(const GrFragmentProcessor & other) const36 bool GrHelloWorld::onIsEqual(const GrFragmentProcessor& other) const {
37     const GrHelloWorld& that = other.cast<GrHelloWorld>();
38     (void) that;
39     return true;
40 }
GrHelloWorld(const GrHelloWorld & src)41 GrHelloWorld::GrHelloWorld(const GrHelloWorld& src)
42 : INHERITED(kGrHelloWorld_ClassID, src.optimizationFlags()) {
43         this->cloneAndRegisterAllChildProcessors(src);
44 }
clone() const45 std::unique_ptr<GrFragmentProcessor> GrHelloWorld::clone() const {
46     return std::make_unique<GrHelloWorld>(*this);
47 }
48 #if GR_TEST_UTILS
onDumpInfo() const49 SkString GrHelloWorld::onDumpInfo() const {
50     return SkString();
51 }
52 #endif
53