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 const GrGLCaps& caps, | 95 const GrGLCaps& caps, |
96 GrProcessorKeyBuilder* b) const SK_OVERRIDE; | 96 GrProcessorKeyBuilder* b) const SK_OVERRIDE; |
97 | 97 |
98 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co
nst SK_OVERRIDE; | 98 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co
nst SK_OVERRIDE; |
99 | 99 |
100 private: | 100 private: |
101 GrConicEffect(GrColor, uint8_t coverage, GrPrimitiveEdgeType); | 101 GrConicEffect(GrColor, uint8_t coverage, GrPrimitiveEdgeType); |
102 | 102 |
103 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; | 103 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
104 | 104 |
105 virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const SK_OVE
RRIDE { | 105 virtual void onComputeOutputCoverage(GrInitInvariantOutput* out) const SK_OV
ERRIDE { |
106 inout->mulByUnknownAlpha(); | 106 out->setIsUnknownSingleComponent(); |
107 } | 107 } |
108 | 108 |
109 GrPrimitiveEdgeType fEdgeType; | 109 GrPrimitiveEdgeType fEdgeType; |
110 const GrAttribute* fInPosition; | 110 const GrAttribute* fInPosition; |
111 const GrAttribute* fInConicCoeffs; | 111 const GrAttribute* fInConicCoeffs; |
112 | 112 |
113 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 113 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
114 | 114 |
115 typedef GrGeometryProcessor INHERITED; | 115 typedef GrGeometryProcessor INHERITED; |
116 }; | 116 }; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 const GrGLCaps& caps, | 164 const GrGLCaps& caps, |
165 GrProcessorKeyBuilder* b) const SK_OVERRIDE; | 165 GrProcessorKeyBuilder* b) const SK_OVERRIDE; |
166 | 166 |
167 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co
nst SK_OVERRIDE; | 167 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co
nst SK_OVERRIDE; |
168 | 168 |
169 private: | 169 private: |
170 GrQuadEffect(GrColor, uint8_t coverage, GrPrimitiveEdgeType); | 170 GrQuadEffect(GrColor, uint8_t coverage, GrPrimitiveEdgeType); |
171 | 171 |
172 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; | 172 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
173 | 173 |
174 virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const SK_OVE
RRIDE { | 174 virtual void onComputeOutputCoverage(GrInitInvariantOutput* out) const SK_OV
ERRIDE { |
175 inout->mulByUnknownAlpha(); | 175 out->setIsUnknownSingleComponent(); |
176 } | 176 } |
177 | 177 |
178 GrPrimitiveEdgeType fEdgeType; | 178 GrPrimitiveEdgeType fEdgeType; |
179 const GrAttribute* fInPosition; | 179 const GrAttribute* fInPosition; |
180 const GrAttribute* fInHairQuadEdge; | 180 const GrAttribute* fInHairQuadEdge; |
181 | 181 |
182 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 182 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
183 | 183 |
184 typedef GrGeometryProcessor INHERITED; | 184 typedef GrGeometryProcessor INHERITED; |
185 }; | 185 }; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 const GrGLCaps& caps, | 234 const GrGLCaps& caps, |
235 GrProcessorKeyBuilder* b) const SK_OVERRIDE; | 235 GrProcessorKeyBuilder* b) const SK_OVERRIDE; |
236 | 236 |
237 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co
nst SK_OVERRIDE; | 237 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co
nst SK_OVERRIDE; |
238 | 238 |
239 private: | 239 private: |
240 GrCubicEffect(GrColor, GrPrimitiveEdgeType); | 240 GrCubicEffect(GrColor, GrPrimitiveEdgeType); |
241 | 241 |
242 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; | 242 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
243 | 243 |
244 virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const SK_OVE
RRIDE { | 244 virtual void onComputeOutputCoverage(GrInitInvariantOutput* out) const SK_OV
ERRIDE { |
245 inout->mulByUnknownAlpha(); | 245 out->setIsUnknownSingleComponent(); |
246 } | 246 } |
247 | 247 |
248 GrPrimitiveEdgeType fEdgeType; | 248 GrPrimitiveEdgeType fEdgeType; |
249 const GrAttribute* fInPosition; | 249 const GrAttribute* fInPosition; |
250 const GrAttribute* fInCubicCoeffs; | 250 const GrAttribute* fInCubicCoeffs; |
251 | 251 |
252 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 252 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
253 | 253 |
254 typedef GrGeometryProcessor INHERITED; | 254 typedef GrGeometryProcessor INHERITED; |
255 }; | 255 }; |
256 | 256 |
257 #endif | 257 #endif |
OLD | NEW |