Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: src/gpu/effects/GrBezierEffect.h

Issue 643743003: Create helper functions to use in computeInvariantOutput calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update blurMaskFilter Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBicubicEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBicubicEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698