Index: src/gpu/effects/GrBezierEffect.cpp |
diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp |
index 0bcfc75bef5cbbcb4ac40bf9c71321a832d70d91..1b14d349dd9fc29688a0604650926466dc20def2 100644 |
--- a/src/gpu/effects/GrBezierEffect.cpp |
+++ b/src/gpu/effects/GrBezierEffect.cpp |
@@ -15,20 +15,13 @@ |
class GrGLConicEffect : public GrGLGeometryProcessor { |
public: |
- GrGLConicEffect(const GrBackendProcessorFactory&, |
- const GrGeometryProcessor&, |
- const GrBatchTracker&); |
+ GrGLConicEffect(const GrBackendProcessorFactory&, const GrProcessor&); |
virtual void emitCode(const EmitArgs&) SK_OVERRIDE; |
- static inline void GenKey(const GrGeometryProcessor&, |
- const GrBatchTracker&, |
- const GrGLCaps&, |
- GrProcessorKeyBuilder*); |
- |
- virtual void setData(const GrGLProgramDataManager&, |
- const GrGeometryProcessor&, |
- const GrBatchTracker&) SK_OVERRIDE {} |
+ static inline void GenKey(const GrProcessor&, const GrGLCaps&, GrProcessorKeyBuilder*); |
+ |
+ virtual void setData(const GrGLProgramDataManager&, const GrProcessor&) SK_OVERRIDE {} |
private: |
GrPrimitiveEdgeType fEdgeType; |
@@ -37,10 +30,9 @@ |
}; |
GrGLConicEffect::GrGLConicEffect(const GrBackendProcessorFactory& factory, |
- const GrGeometryProcessor& processor, |
- const GrBatchTracker& bt) |
+ const GrProcessor& effect) |
: INHERITED (factory) { |
- const GrConicEffect& ce = processor.cast<GrConicEffect>(); |
+ const GrConicEffect& ce = effect.cast<GrConicEffect>(); |
fEdgeType = ce.getEdgeType(); |
} |
@@ -120,9 +112,7 @@ |
fsBuilder->codeAppendf("%s = vec4(edgeAlpha);", args.fOutputCoverage); |
} |
-void GrGLConicEffect::GenKey(const GrGeometryProcessor& processor, |
- const GrBatchTracker&, |
- const GrGLCaps&, |
+void GrGLConicEffect::GenKey(const GrProcessor& processor, const GrGLCaps&, |
GrProcessorKeyBuilder* b) { |
const GrConicEffect& ce = processor.cast<GrConicEffect>(); |
uint32_t key = ce.isAntiAliased() ? (ce.isFilled() ? 0x0 : 0x1) : 0x2; |
@@ -172,20 +162,13 @@ |
class GrGLQuadEffect : public GrGLGeometryProcessor { |
public: |
- GrGLQuadEffect(const GrBackendProcessorFactory&, |
- const GrGeometryProcessor&, |
- const GrBatchTracker&); |
+ GrGLQuadEffect(const GrBackendProcessorFactory&, const GrProcessor&); |
virtual void emitCode(const EmitArgs&) SK_OVERRIDE; |
- static inline void GenKey(const GrGeometryProcessor&, |
- const GrBatchTracker&, |
- const GrGLCaps&, |
- GrProcessorKeyBuilder*); |
- |
- virtual void setData(const GrGLProgramDataManager&, |
- const GrGeometryProcessor&, |
- const GrBatchTracker&) SK_OVERRIDE {} |
+ static inline void GenKey(const GrProcessor&, const GrGLCaps&, GrProcessorKeyBuilder*); |
+ |
+ virtual void setData(const GrGLProgramDataManager&, const GrProcessor&) SK_OVERRIDE {} |
private: |
GrPrimitiveEdgeType fEdgeType; |
@@ -194,10 +177,9 @@ |
}; |
GrGLQuadEffect::GrGLQuadEffect(const GrBackendProcessorFactory& factory, |
- const GrGeometryProcessor& processor, |
- const GrBatchTracker& bt) |
+ const GrProcessor& effect) |
: INHERITED (factory) { |
- const GrQuadEffect& ce = processor.cast<GrQuadEffect>(); |
+ const GrQuadEffect& ce = effect.cast<GrQuadEffect>(); |
fEdgeType = ce.getEdgeType(); |
} |
@@ -263,9 +245,7 @@ |
fsBuilder->codeAppendf("%s = vec4(edgeAlpha);", args.fOutputCoverage); |
} |
-void GrGLQuadEffect::GenKey(const GrGeometryProcessor& processor, |
- const GrBatchTracker&, |
- const GrGLCaps&, |
+void GrGLQuadEffect::GenKey(const GrProcessor& processor, const GrGLCaps&, |
GrProcessorKeyBuilder* b) { |
const GrQuadEffect& ce = processor.cast<GrQuadEffect>(); |
uint32_t key = ce.isAntiAliased() ? (ce.isFilled() ? 0x0 : 0x1) : 0x2; |
@@ -315,20 +295,13 @@ |
class GrGLCubicEffect : public GrGLGeometryProcessor { |
public: |
- GrGLCubicEffect(const GrBackendProcessorFactory&, |
- const GrGeometryProcessor&, |
- const GrBatchTracker&); |
+ GrGLCubicEffect(const GrBackendProcessorFactory&, const GrProcessor&); |
virtual void emitCode(const EmitArgs&) SK_OVERRIDE; |
- static inline void GenKey(const GrGeometryProcessor&, |
- const GrBatchTracker&, |
- const GrGLCaps&, |
- GrProcessorKeyBuilder*); |
- |
- virtual void setData(const GrGLProgramDataManager&, |
- const GrGeometryProcessor&, |
- const GrBatchTracker&) SK_OVERRIDE {} |
+ static inline void GenKey(const GrProcessor&, const GrGLCaps&, GrProcessorKeyBuilder*); |
+ |
+ virtual void setData(const GrGLProgramDataManager&, const GrProcessor&) SK_OVERRIDE {} |
private: |
GrPrimitiveEdgeType fEdgeType; |
@@ -337,8 +310,7 @@ |
}; |
GrGLCubicEffect::GrGLCubicEffect(const GrBackendProcessorFactory& factory, |
- const GrGeometryProcessor& processor, |
- const GrBatchTracker&) |
+ const GrProcessor& processor) |
: INHERITED (factory) { |
const GrCubicEffect& ce = processor.cast<GrCubicEffect>(); |
fEdgeType = ce.getEdgeType(); |
@@ -447,9 +419,7 @@ |
fsBuilder->codeAppendf("%s = vec4(%s);", args.fOutputCoverage, edgeAlpha.c_str()); |
} |
-void GrGLCubicEffect::GenKey(const GrGeometryProcessor& processor, |
- const GrBatchTracker&, |
- const GrGLCaps&, |
+void GrGLCubicEffect::GenKey(const GrProcessor& processor, const GrGLCaps&, |
GrProcessorKeyBuilder* b) { |
const GrCubicEffect& ce = processor.cast<GrCubicEffect>(); |
uint32_t key = ce.isAntiAliased() ? (ce.isFilled() ? 0x0 : 0x1) : 0x2; |