• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2018 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 /**************************************************************************************************
9  *** This file was autogenerated from GrAARectEffect.fp; do not modify.
10  **************************************************************************************************/
11 #ifndef GrAARectEffect_DEFINED
12 #define GrAARectEffect_DEFINED
13 #include "include/core/SkTypes.h"
14 #include "include/core/SkM44.h"
15 
16 #include "src/gpu/GrCoordTransform.h"
17 #include "src/gpu/GrFragmentProcessor.h"
18 class GrAARectEffect : public GrFragmentProcessor {
19 public:
Make(GrClipEdgeType edgeType,SkRect rect)20     static std::unique_ptr<GrFragmentProcessor> Make(GrClipEdgeType edgeType, SkRect rect) {
21         return std::unique_ptr<GrFragmentProcessor>(new GrAARectEffect(edgeType, rect));
22     }
23     GrAARectEffect(const GrAARectEffect& src);
24     std::unique_ptr<GrFragmentProcessor> clone() const override;
name()25     const char* name() const override { return "AARectEffect"; }
26     GrClipEdgeType edgeType;
27     SkRect rect;
28 
29 private:
GrAARectEffect(GrClipEdgeType edgeType,SkRect rect)30     GrAARectEffect(GrClipEdgeType edgeType, SkRect rect)
31             : INHERITED(kGrAARectEffect_ClassID,
32                         (OptimizationFlags)kCompatibleWithCoverageAsAlpha_OptimizationFlag)
33             , edgeType(edgeType)
34             , rect(rect) {}
35     GrGLSLFragmentProcessor* onCreateGLSLInstance() const override;
36     void onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const override;
37     bool onIsEqual(const GrFragmentProcessor&) const override;
38     GR_DECLARE_FRAGMENT_PROCESSOR_TEST
39     typedef GrFragmentProcessor INHERITED;
40 };
41 #endif
42