| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrBezierEffect_DEFINED | 8 #ifndef GrBezierEffect_DEFINED |
| 9 #define GrBezierEffect_DEFINED | 9 #define GrBezierEffect_DEFINED |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType);
} | 95 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType);
} |
| 96 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } | 96 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } |
| 97 | 97 |
| 98 typedef GrGLConicEffect GLProcessor; | 98 typedef GrGLConicEffect GLProcessor; |
| 99 | 99 |
| 100 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; | 100 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 GrConicEffect(GrPrimitiveEdgeType); | 103 GrConicEffect(GrPrimitiveEdgeType); |
| 104 | 104 |
| 105 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; | 105 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
| 106 | 106 |
| 107 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { | 107 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { |
| 108 inout->mulByUnknownAlpha(); | 108 inout->mulByUnknownAlpha(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 GrPrimitiveEdgeType fEdgeType; | 111 GrPrimitiveEdgeType fEdgeType; |
| 112 const GrShaderVar& fInConicCoeffs; | 112 const GrShaderVar& fInConicCoeffs; |
| 113 | 113 |
| 114 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 114 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 115 | 115 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType);
} | 167 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType);
} |
| 168 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } | 168 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } |
| 169 | 169 |
| 170 typedef GrGLQuadEffect GLProcessor; | 170 typedef GrGLQuadEffect GLProcessor; |
| 171 | 171 |
| 172 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; | 172 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; |
| 173 | 173 |
| 174 private: | 174 private: |
| 175 GrQuadEffect(GrPrimitiveEdgeType); | 175 GrQuadEffect(GrPrimitiveEdgeType); |
| 176 | 176 |
| 177 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; | 177 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
| 178 | 178 |
| 179 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { | 179 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { |
| 180 inout->mulByUnknownAlpha(); | 180 inout->mulByUnknownAlpha(); |
| 181 } | 181 } |
| 182 | 182 |
| 183 GrPrimitiveEdgeType fEdgeType; | 183 GrPrimitiveEdgeType fEdgeType; |
| 184 const GrShaderVar& fInHairQuadEdge; | 184 const GrShaderVar& fInHairQuadEdge; |
| 185 | 185 |
| 186 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 186 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 187 | 187 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType);
} | 241 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType);
} |
| 242 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } | 242 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } |
| 243 | 243 |
| 244 typedef GrGLCubicEffect GLProcessor; | 244 typedef GrGLCubicEffect GLProcessor; |
| 245 | 245 |
| 246 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; | 246 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; |
| 247 | 247 |
| 248 private: | 248 private: |
| 249 GrCubicEffect(GrPrimitiveEdgeType); | 249 GrCubicEffect(GrPrimitiveEdgeType); |
| 250 | 250 |
| 251 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; | 251 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
| 252 | 252 |
| 253 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { | 253 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { |
| 254 inout->mulByUnknownAlpha(); | 254 inout->mulByUnknownAlpha(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 GrPrimitiveEdgeType fEdgeType; | 257 GrPrimitiveEdgeType fEdgeType; |
| 258 const GrShaderVar& fInCubicCoeffs; | 258 const GrShaderVar& fInCubicCoeffs; |
| 259 | 259 |
| 260 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 260 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 261 | 261 |
| 262 typedef GrGeometryProcessor INHERITED; | 262 typedef GrGeometryProcessor INHERITED; |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 #endif | 265 #endif |
| OLD | NEW |