OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrCoverageSetOpXP_DEFINED | 8 #ifndef GrCoverageSetOpXP_DEFINED |
9 #define GrCoverageSetOpXP_DEFINED | 9 #define GrCoverageSetOpXP_DEFINED |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 * applying the set operator. | 21 * applying the set operator. |
22 * */ | 22 * */ |
23 class GrCoverageSetOpXP : public GrXferProcessor { | 23 class GrCoverageSetOpXP : public GrXferProcessor { |
24 public: | 24 public: |
25 static GrXferProcessor* Create(SkRegion::Op regionOp, bool invertCoverage) { | 25 static GrXferProcessor* Create(SkRegion::Op regionOp, bool invertCoverage) { |
26 return SkNEW_ARGS(GrCoverageSetOpXP, (regionOp, invertCoverage)); | 26 return SkNEW_ARGS(GrCoverageSetOpXP, (regionOp, invertCoverage)); |
27 } | 27 } |
28 | 28 |
29 ~GrCoverageSetOpXP() SK_OVERRIDE; | 29 ~GrCoverageSetOpXP() SK_OVERRIDE; |
30 | 30 |
31 virtual const char* name() const { return "Coverage Set Op"; } | 31 virtual const char* name() const SK_OVERRIDE { return "Coverage Set Op"; } |
32 | 32 |
33 void getGLProcessorKey(const GrGLCaps& caps, GrProcessorKeyBuilder* b) const
SK_OVERRIDE; | 33 void getGLProcessorKey(const GrGLCaps& caps, GrProcessorKeyBuilder* b) const
SK_OVERRIDE; |
34 | 34 |
35 GrGLXferProcessor* createGLInstance() const SK_OVERRIDE; | 35 GrGLXferProcessor* createGLInstance() const SK_OVERRIDE; |
36 | 36 |
37 bool hasSecondaryOutput() const SK_OVERRIDE { return false; } | 37 bool hasSecondaryOutput() const SK_OVERRIDE { return false; } |
38 | 38 |
39 GrXferProcessor::OptFlags getOptimizations(const GrProcOptInfo& colorPOI, | 39 GrXferProcessor::OptFlags getOptimizations(const GrProcOptInfo& colorPOI, |
40 const GrProcOptInfo& coveragePOI, | 40 const GrProcOptInfo& coveragePOI, |
41 bool colorWriteDisabled, | 41 bool colorWriteDisabled, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 GR_DECLARE_XP_FACTORY_TEST; | 101 GR_DECLARE_XP_FACTORY_TEST; |
102 | 102 |
103 SkRegion::Op fRegionOp; | 103 SkRegion::Op fRegionOp; |
104 bool fInvertCoverage; | 104 bool fInvertCoverage; |
105 | 105 |
106 typedef GrXPFactory INHERITED; | 106 typedef GrXPFactory INHERITED; |
107 }; | 107 }; |
108 #endif | 108 #endif |
109 | 109 |
OLD | NEW |