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

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

Issue 1332923003: Remove batchtracker (Closed) Base URL: https://skia.googlesource.com/skia.git@latecreatepathprocessor
Patch Set: tweaks Created 5 years, 3 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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); } 96 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); }
97 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 97 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
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 virtual void getGLProcessorKey(const GrBatchTracker& bt, 106 virtual void getGLProcessorKey(const GrGLSLCaps& caps,
bsalomon 2015/09/10 18:55:31 -virtual?
joshualitt 2015/09/10 20:08:05 Acknowledged.
107 const GrGLSLCaps& caps,
108 GrProcessorKeyBuilder* b) const override; 107 GrProcessorKeyBuilder* b) const override;
109 108
110 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 109 virtual GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const ov erride;
bsalomon 2015/09/10 18:55:31 -virtual?
joshualitt 2015/09/10 20:08:05 Acknowledged.
111 const GrGLSLCaps&) const ov erride;
112 110
113 private: 111 private:
114 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimi tiveEdgeType, 112 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimi tiveEdgeType,
115 const SkMatrix& localMatrix, bool usesLocalCoords); 113 const SkMatrix& localMatrix, bool usesLocalCoords);
116 114
117 GrColor fColor; 115 GrColor fColor;
118 SkMatrix fViewMatrix; 116 SkMatrix fViewMatrix;
119 SkMatrix fLocalMatrix; 117 SkMatrix fLocalMatrix;
120 bool fUsesLocalCoords; 118 bool fUsesLocalCoords;
121 uint8_t fCoverageScale; 119 uint8_t fCoverageScale;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); } 177 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); }
180 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 178 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
181 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 179 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
182 GrColor color() const { return fColor; } 180 GrColor color() const { return fColor; }
183 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } 181 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
184 const SkMatrix& viewMatrix() const { return fViewMatrix; } 182 const SkMatrix& viewMatrix() const { return fViewMatrix; }
185 const SkMatrix& localMatrix() const { return fLocalMatrix; } 183 const SkMatrix& localMatrix() const { return fLocalMatrix; }
186 bool usesLocalCoords() const { return fUsesLocalCoords; } 184 bool usesLocalCoords() const { return fUsesLocalCoords; }
187 uint8_t coverageScale() const { return fCoverageScale; } 185 uint8_t coverageScale() const { return fCoverageScale; }
188 186
189 virtual void getGLProcessorKey(const GrBatchTracker& bt, 187 virtual void getGLProcessorKey(const GrGLSLCaps& caps,
bsalomon 2015/09/10 18:55:31 -virtual?
joshualitt 2015/09/10 20:08:05 Acknowledged.
190 const GrGLSLCaps& caps,
191 GrProcessorKeyBuilder* b) const override; 188 GrProcessorKeyBuilder* b) const override;
192 189
193 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 190 virtual GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const ov erride;
bsalomon 2015/09/10 18:55:31 -virtual?
joshualitt 2015/09/10 20:08:05 Acknowledged.
194 const GrGLSLCaps&) const ov erride;
195 191
196 private: 192 private:
197 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimit iveEdgeType, 193 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimit iveEdgeType,
198 const SkMatrix& localMatrix, bool usesLocalCoords); 194 const SkMatrix& localMatrix, bool usesLocalCoords);
199 195
200 GrColor fColor; 196 GrColor fColor;
201 SkMatrix fViewMatrix; 197 SkMatrix fViewMatrix;
202 SkMatrix fLocalMatrix; 198 SkMatrix fLocalMatrix;
203 bool fUsesLocalCoords; 199 bool fUsesLocalCoords;
204 uint8_t fCoverageScale; 200 uint8_t fCoverageScale;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 250
255 inline const Attribute* inPosition() const { return fInPosition; } 251 inline const Attribute* inPosition() const { return fInPosition; }
256 inline const Attribute* inCubicCoeffs() const { return fInCubicCoeffs; } 252 inline const Attribute* inCubicCoeffs() const { return fInCubicCoeffs; }
257 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); } 253 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); }
258 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 254 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
259 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 255 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
260 GrColor color() const { return fColor; } 256 GrColor color() const { return fColor; }
261 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } 257 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
262 const SkMatrix& viewMatrix() const { return fViewMatrix; } 258 const SkMatrix& viewMatrix() const { return fViewMatrix; }
263 259
264 virtual void getGLProcessorKey(const GrBatchTracker& bt, 260 virtual void getGLProcessorKey(const GrGLSLCaps& caps,
bsalomon 2015/09/10 18:55:31 -virtual?
joshualitt 2015/09/10 20:08:05 Acknowledged.
265 const GrGLSLCaps& caps,
266 GrProcessorKeyBuilder* b) const override; 261 GrProcessorKeyBuilder* b) const override;
267 262
268 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 263 virtual GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const ov erride;
bsalomon 2015/09/10 18:55:31 -virtual?
joshualitt 2015/09/10 20:08:05 Acknowledged.
269 const GrGLSLCaps&) const ov erride;
270 264
271 private: 265 private:
272 GrCubicEffect(GrColor, const SkMatrix& viewMatrix, GrPrimitiveEdgeType); 266 GrCubicEffect(GrColor, const SkMatrix& viewMatrix, GrPrimitiveEdgeType);
273 267
274 GrColor fColor; 268 GrColor fColor;
275 SkMatrix fViewMatrix; 269 SkMatrix fViewMatrix;
276 GrPrimitiveEdgeType fEdgeType; 270 GrPrimitiveEdgeType fEdgeType;
277 const Attribute* fInPosition; 271 const Attribute* fInPosition;
278 const Attribute* fInCubicCoeffs; 272 const Attribute* fInCubicCoeffs;
279 273
280 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 274 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
281 275
282 typedef GrGeometryProcessor INHERITED; 276 typedef GrGeometryProcessor INHERITED;
283 }; 277 };
284 278
285 #endif 279 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698