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

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

Issue 845103005: GrBatchPrototype (Closed) Base URL: https://skia.googlesource.com/skia.git@lc2
Patch Set: removing dstread Created 5 years, 10 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/GrProcessor.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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 98 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
99 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 99 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
100 100
101 virtual void getGLProcessorKey(const GrBatchTracker& bt, 101 virtual void getGLProcessorKey(const GrBatchTracker& bt,
102 const GrGLCaps& caps, 102 const GrGLCaps& caps,
103 GrProcessorKeyBuilder* b) const SK_OVERRIDE; 103 GrProcessorKeyBuilder* b) const SK_OVERRIDE;
104 104
105 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 105 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
106 const GrGLCaps&) const SK_O VERRIDE; 106 const GrGLCaps&) const SK_O VERRIDE;
107 107
108 void initBatchTracker(GrBatchTracker*, const InitBT&) const SK_OVERRIDE; 108 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const SK_OVERR IDE;
109 bool onCanMakeEqual(const GrBatchTracker&, 109 bool onCanMakeEqual(const GrBatchTracker&,
110 const GrGeometryProcessor&, 110 const GrGeometryProcessor&,
111 const GrBatchTracker&) const SK_OVERRIDE; 111 const GrBatchTracker&) const SK_OVERRIDE;
112 112
113 private: 113 private:
114 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimi tiveEdgeType, 114 GrConicEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimi tiveEdgeType,
115 const SkMatrix& localMatrix); 115 const SkMatrix& localMatrix);
116 116
117 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; 117 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
118 118
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 183 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
184 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 184 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
185 185
186 virtual void getGLProcessorKey(const GrBatchTracker& bt, 186 virtual void getGLProcessorKey(const GrBatchTracker& bt,
187 const GrGLCaps& caps, 187 const GrGLCaps& caps,
188 GrProcessorKeyBuilder* b) const SK_OVERRIDE; 188 GrProcessorKeyBuilder* b) const SK_OVERRIDE;
189 189
190 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 190 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
191 const GrGLCaps&) const SK_O VERRIDE; 191 const GrGLCaps&) const SK_O VERRIDE;
192 192
193 void initBatchTracker(GrBatchTracker*, const InitBT&) const SK_OVERRIDE; 193 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const SK_OVERR IDE;
194 bool onCanMakeEqual(const GrBatchTracker&, 194 bool onCanMakeEqual(const GrBatchTracker&,
195 const GrGeometryProcessor&, 195 const GrGeometryProcessor&,
196 const GrBatchTracker&) const SK_OVERRIDE; 196 const GrBatchTracker&) const SK_OVERRIDE;
197 197
198 private: 198 private:
199 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimit iveEdgeType, 199 GrQuadEffect(GrColor, const SkMatrix& viewMatrix, uint8_t coverage, GrPrimit iveEdgeType,
200 const SkMatrix& localMatrix); 200 const SkMatrix& localMatrix);
201 201
202 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; 202 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
203 203
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } 264 inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
265 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } 265 inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
266 266
267 virtual void getGLProcessorKey(const GrBatchTracker& bt, 267 virtual void getGLProcessorKey(const GrBatchTracker& bt,
268 const GrGLCaps& caps, 268 const GrGLCaps& caps,
269 GrProcessorKeyBuilder* b) const SK_OVERRIDE; 269 GrProcessorKeyBuilder* b) const SK_OVERRIDE;
270 270
271 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 271 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
272 const GrGLCaps&) const SK_O VERRIDE; 272 const GrGLCaps&) const SK_O VERRIDE;
273 273
274 void initBatchTracker(GrBatchTracker*, const InitBT&) const SK_OVERRIDE; 274 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const SK_OVERR IDE;
275 bool onCanMakeEqual(const GrBatchTracker&, 275 bool onCanMakeEqual(const GrBatchTracker&,
276 const GrGeometryProcessor&, 276 const GrGeometryProcessor&,
277 const GrBatchTracker&) const SK_OVERRIDE; 277 const GrBatchTracker&) const SK_OVERRIDE;
278 278
279 private: 279 private:
280 GrCubicEffect(GrColor, const SkMatrix& viewMatrix, GrPrimitiveEdgeType); 280 GrCubicEffect(GrColor, const SkMatrix& viewMatrix, GrPrimitiveEdgeType);
281 281
282 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; 282 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
283 283
284 void onGetInvariantOutputCoverage(GrInitInvariantOutput* out) const SK_OVERR IDE { 284 void onGetInvariantOutputCoverage(GrInitInvariantOutput* out) const SK_OVERR IDE {
285 out->setUnknownSingleComponent(); 285 out->setUnknownSingleComponent();
286 } 286 }
287 287
288 GrPrimitiveEdgeType fEdgeType; 288 GrPrimitiveEdgeType fEdgeType;
289 const Attribute* fInPosition; 289 const Attribute* fInPosition;
290 const Attribute* fInCubicCoeffs; 290 const Attribute* fInCubicCoeffs;
291 291
292 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 292 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
293 293
294 typedef GrGeometryProcessor INHERITED; 294 typedef GrGeometryProcessor INHERITED;
295 }; 295 };
296 296
297 #endif 297 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrProcessor.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698