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

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
« no previous file with comments | « src/gpu/batches/GrVertexBatch.cpp ('k') | src/gpu/effects/GrBezierEffect.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 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 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
107 const GrGLSLCaps& caps,
108 GrProcessorKeyBuilder* b) const override;
109 107
110 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 108 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override;
111 const GrGLSLCaps&) const ov erride;
112 109
113 private: 110 private:
114 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimi tiveEdgeType, 111 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimi tiveEdgeType,
115 const SkMatrix& localMatrix, bool usesLocalCoords); 112 const SkMatrix& localMatrix, bool usesLocalCoords);
116 113
117 GrColor fColor; 114 GrColor fColor;
118 SkMatrix fViewMatrix; 115 SkMatrix fViewMatrix;
119 SkMatrix fLocalMatrix; 116 SkMatrix fLocalMatrix;
120 bool fUsesLocalCoords; 117 bool fUsesLocalCoords;
121 uint8_t fCoverageScale; 118 uint8_t fCoverageScale;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); } 176 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); }
180 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 177 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
181 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 178 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
182 GrColor color() const { return fColor; } 179 GrColor color() const { return fColor; }
183 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } 180 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
184 const SkMatrix& viewMatrix() const { return fViewMatrix; } 181 const SkMatrix& viewMatrix() const { return fViewMatrix; }
185 const SkMatrix& localMatrix() const { return fLocalMatrix; } 182 const SkMatrix& localMatrix() const { return fLocalMatrix; }
186 bool usesLocalCoords() const { return fUsesLocalCoords; } 183 bool usesLocalCoords() const { return fUsesLocalCoords; }
187 uint8_t coverageScale() const { return fCoverageScale; } 184 uint8_t coverageScale() const { return fCoverageScale; }
188 185
189 virtual void getGLProcessorKey(const GrBatchTracker& bt, 186 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
190 const GrGLSLCaps& caps,
191 GrProcessorKeyBuilder* b) const override;
192 187
193 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 188 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override;
194 const GrGLSLCaps&) const ov erride;
195 189
196 private: 190 private:
197 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimit iveEdgeType, 191 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimit iveEdgeType,
198 const SkMatrix& localMatrix, bool usesLocalCoords); 192 const SkMatrix& localMatrix, bool usesLocalCoords);
199 193
200 GrColor fColor; 194 GrColor fColor;
201 SkMatrix fViewMatrix; 195 SkMatrix fViewMatrix;
202 SkMatrix fLocalMatrix; 196 SkMatrix fLocalMatrix;
203 bool fUsesLocalCoords; 197 bool fUsesLocalCoords;
204 uint8_t fCoverageScale; 198 uint8_t fCoverageScale;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 248
255 inline const Attribute* inPosition() const { return fInPosition; } 249 inline const Attribute* inPosition() const { return fInPosition; }
256 inline const Attribute* inCubicCoeffs() const { return fInCubicCoeffs; } 250 inline const Attribute* inCubicCoeffs() const { return fInCubicCoeffs; }
257 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); } 251 inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType ); }
258 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 252 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
259 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 253 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
260 GrColor color() const { return fColor; } 254 GrColor color() const { return fColor; }
261 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } 255 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
262 const SkMatrix& viewMatrix() const { return fViewMatrix; } 256 const SkMatrix& viewMatrix() const { return fViewMatrix; }
263 257
264 virtual void getGLProcessorKey(const GrBatchTracker& bt, 258 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
265 const GrGLSLCaps& caps,
266 GrProcessorKeyBuilder* b) const override;
267 259
268 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 260 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps&) const override;
269 const GrGLSLCaps&) const ov erride;
270 261
271 private: 262 private:
272 GrCubicEffect(GrColor, const SkMatrix& viewMatrix, GrPrimitiveEdgeType); 263 GrCubicEffect(GrColor, const SkMatrix& viewMatrix, GrPrimitiveEdgeType);
273 264
274 GrColor fColor; 265 GrColor fColor;
275 SkMatrix fViewMatrix; 266 SkMatrix fViewMatrix;
276 GrPrimitiveEdgeType fEdgeType; 267 GrPrimitiveEdgeType fEdgeType;
277 const Attribute* fInPosition; 268 const Attribute* fInPosition;
278 const Attribute* fInCubicCoeffs; 269 const Attribute* fInCubicCoeffs;
279 270
280 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 271 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
281 272
282 typedef GrGeometryProcessor INHERITED; 273 typedef GrGeometryProcessor INHERITED;
283 }; 274 };
284 275
285 #endif 276 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrVertexBatch.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698