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

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

Issue 1441683008: Move GrGLPrimitive/GeometryProc to GLSL (Closed) Base URL: https://skia.googlesource.com/skia.git@xferProcs
Patch Set: nits Created 5 years, 1 month 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
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 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 98 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
99 GrColor color() const { return fColor; } 99 GrColor color() const { return fColor; }
100 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } 100 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
101 const SkMatrix& viewMatrix() const { return fViewMatrix; } 101 const SkMatrix& viewMatrix() const { return fViewMatrix; }
102 const SkMatrix& localMatrix() const { return fLocalMatrix; } 102 const SkMatrix& localMatrix() const { return fLocalMatrix; }
103 bool usesLocalCoords() const { return fUsesLocalCoords; } 103 bool usesLocalCoords() const { return fUsesLocalCoords; }
104 uint8_t coverageScale() const { return fCoverageScale; } 104 uint8_t coverageScale() const { return fCoverageScale; }
105 105
106 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override; 106 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
107 107
108 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override; 108 GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override ;
109 109
110 private: 110 private:
111 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimi tiveEdgeType, 111 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimi tiveEdgeType,
112 const SkMatrix& localMatrix, bool usesLocalCoords); 112 const SkMatrix& localMatrix, bool usesLocalCoords);
113 113
114 GrColor fColor; 114 GrColor fColor;
115 SkMatrix fViewMatrix; 115 SkMatrix fViewMatrix;
116 SkMatrix fLocalMatrix; 116 SkMatrix fLocalMatrix;
117 bool fUsesLocalCoords; 117 bool fUsesLocalCoords;
118 uint8_t fCoverageScale; 118 uint8_t fCoverageScale;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 178 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
179 GrColor color() const { return fColor; } 179 GrColor color() const { return fColor; }
180 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } 180 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
181 const SkMatrix& viewMatrix() const { return fViewMatrix; } 181 const SkMatrix& viewMatrix() const { return fViewMatrix; }
182 const SkMatrix& localMatrix() const { return fLocalMatrix; } 182 const SkMatrix& localMatrix() const { return fLocalMatrix; }
183 bool usesLocalCoords() const { return fUsesLocalCoords; } 183 bool usesLocalCoords() const { return fUsesLocalCoords; }
184 uint8_t coverageScale() const { return fCoverageScale; } 184 uint8_t coverageScale() const { return fCoverageScale; }
185 185
186 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override; 186 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
187 187
188 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override; 188 GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override ;
189 189
190 private: 190 private:
191 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimit iveEdgeType, 191 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimit iveEdgeType,
192 const SkMatrix& localMatrix, bool usesLocalCoords); 192 const SkMatrix& localMatrix, bool usesLocalCoords);
193 193
194 GrColor fColor; 194 GrColor fColor;
195 SkMatrix fViewMatrix; 195 SkMatrix fViewMatrix;
196 SkMatrix fLocalMatrix; 196 SkMatrix fLocalMatrix;
197 bool fUsesLocalCoords; 197 bool fUsesLocalCoords;
198 uint8_t fCoverageScale; 198 uint8_t fCoverageScale;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 inline const Attribute* inCubicCoeffs() const { return fInCubicCoeffs; } 250 inline const Attribute* inCubicCoeffs() const { return fInCubicCoeffs; }
251 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); } 251 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); }
252 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 252 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
253 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 253 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
254 GrColor color() const { return fColor; } 254 GrColor color() const { return fColor; }
255 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } 255 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
256 const SkMatrix& viewMatrix() const { return fViewMatrix; } 256 const SkMatrix& viewMatrix() const { return fViewMatrix; }
257 257
258 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override; 258 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
259 259
260 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override; 260 GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override ;
261 261
262 private: 262 private:
263 GrCubicEffect(GrColor, const SkMatrix& viewMatrix, GrPrimitiveEdgeType); 263 GrCubicEffect(GrColor, const SkMatrix& viewMatrix, GrPrimitiveEdgeType);
264 264
265 GrColor fColor; 265 GrColor fColor;
266 SkMatrix fViewMatrix; 266 SkMatrix fViewMatrix;
267 GrPrimitiveEdgeType fEdgeType; 267 GrPrimitiveEdgeType fEdgeType;
268 const Attribute* fInPosition; 268 const Attribute* fInPosition;
269 const Attribute* fInCubicCoeffs; 269 const Attribute* fInCubicCoeffs;
270 270
271 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 271 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
272 272
273 typedef GrGeometryProcessor INHERITED; 273 typedef GrGeometryProcessor INHERITED;
274 }; 274 };
275 275
276 #endif 276 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698