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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 GrProcessor& 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->fValidFlags = 0; | 108 inout->mulByUnknownAlpha(); |
109 inout->fIsSingleComponent = false; | |
110 } | 109 } |
111 | 110 |
112 GrPrimitiveEdgeType fEdgeType; | 111 GrPrimitiveEdgeType fEdgeType; |
113 const GrShaderVar& fInConicCoeffs; | 112 const GrShaderVar& fInConicCoeffs; |
114 | 113 |
115 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 114 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
116 | 115 |
117 typedef GrGeometryProcessor INHERITED; | 116 typedef GrGeometryProcessor INHERITED; |
118 }; | 117 }; |
119 | 118 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 typedef GrGLQuadEffect GLProcessor; | 170 typedef GrGLQuadEffect GLProcessor; |
172 | 171 |
173 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; | 172 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; |
174 | 173 |
175 private: | 174 private: |
176 GrQuadEffect(GrPrimitiveEdgeType); | 175 GrQuadEffect(GrPrimitiveEdgeType); |
177 | 176 |
178 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; | 177 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; |
179 | 178 |
180 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { | 179 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { |
181 inout->fValidFlags = 0; | 180 inout->mulByUnknownAlpha(); |
182 inout->fIsSingleComponent = false; | |
183 } | 181 } |
184 | 182 |
185 GrPrimitiveEdgeType fEdgeType; | 183 GrPrimitiveEdgeType fEdgeType; |
186 const GrShaderVar& fInHairQuadEdge; | 184 const GrShaderVar& fInHairQuadEdge; |
187 | 185 |
188 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 186 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
189 | 187 |
190 typedef GrGeometryProcessor INHERITED; | 188 typedef GrGeometryProcessor INHERITED; |
191 }; | 189 }; |
192 | 190 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 typedef GrGLCubicEffect GLProcessor; | 244 typedef GrGLCubicEffect GLProcessor; |
247 | 245 |
248 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; | 246 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; |
249 | 247 |
250 private: | 248 private: |
251 GrCubicEffect(GrPrimitiveEdgeType); | 249 GrCubicEffect(GrPrimitiveEdgeType); |
252 | 250 |
253 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; | 251 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; |
254 | 252 |
255 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { | 253 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { |
256 inout->fValidFlags = 0; | 254 inout->mulByUnknownAlpha(); |
257 inout->fIsSingleComponent = false; | |
258 } | 255 } |
259 | 256 |
260 GrPrimitiveEdgeType fEdgeType; | 257 GrPrimitiveEdgeType fEdgeType; |
261 const GrShaderVar& fInCubicCoeffs; | 258 const GrShaderVar& fInCubicCoeffs; |
262 | 259 |
263 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 260 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
264 | 261 |
265 typedef GrGeometryProcessor INHERITED; | 262 typedef GrGeometryProcessor INHERITED; |
266 }; | 263 }; |
267 | 264 |
268 #endif | 265 #endif |
OLD | NEW |