• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 
3 /**************************************************************************************************
4  *** This file was autogenerated from GrNestedChildProcessors.fp; do not modify.
5  **************************************************************************************************/
6 #ifndef GrNestedChildProcessors_DEFINED
7 #define GrNestedChildProcessors_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 GrNestedChildProcessors : public GrFragmentProcessor {
16 public:
Make(std::unique_ptr<GrFragmentProcessor> child1,std::unique_ptr<GrFragmentProcessor> child2)17     static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child1, std::unique_ptr<GrFragmentProcessor> child2) {
18         return std::unique_ptr<GrFragmentProcessor>(new GrNestedChildProcessors(std::move(child1), std::move(child2)));
19     }
20     GrNestedChildProcessors(const GrNestedChildProcessors& src);
21     std::unique_ptr<GrFragmentProcessor> clone() const override;
name()22     const char* name() const override { return "NestedChildProcessors"; }
23 private:
GrNestedChildProcessors(std::unique_ptr<GrFragmentProcessor> child1,std::unique_ptr<GrFragmentProcessor> child2)24     GrNestedChildProcessors(std::unique_ptr<GrFragmentProcessor> child1, std::unique_ptr<GrFragmentProcessor> child2)
25     : INHERITED(kGrNestedChildProcessors_ClassID, kNone_OptimizationFlags) {
26         this->registerChild(std::move(child1), SkSL::SampleUsage::PassThrough());
27         this->registerChild(std::move(child2), SkSL::SampleUsage::PassThrough());
28     }
29     std::unique_ptr<GrGLSLFragmentProcessor> onMakeProgramImpl() const override;
30     void onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const override;
31     bool onIsEqual(const GrFragmentProcessor&) const override;
32 #if GR_TEST_UTILS
33     SkString onDumpInfo() const override;
34 #endif
35     GR_DECLARE_FRAGMENT_PROCESSOR_TEST
36     using INHERITED = GrFragmentProcessor;
37 };
38 #endif
39