Index: src/effects/gradients/SkRadialGradient.cpp |
=================================================================== |
--- src/effects/gradients/SkRadialGradient.cpp (revision 8241) |
+++ src/effects/gradients/SkRadialGradient.cpp (working copy) |
@@ -474,19 +474,18 @@ |
public: |
GrGLRadialGradient(const GrBackendEffectFactory& factory, |
- const GrEffectRef&) : INHERITED (factory) { } |
+ const GrDrawEffect&) : INHERITED (factory) { } |
virtual ~GrGLRadialGradient() { } |
virtual void emitCode(GrGLShaderBuilder*, |
- const GrEffectStage&, |
+ const GrDrawEffect&, |
EffectKey, |
- const char* vertexCoords, |
const char* outputColor, |
const char* inputColor, |
const TextureSamplerArray&) SK_OVERRIDE; |
- static EffectKey GenKey(const GrEffectStage& stage, const GrGLCaps&) { |
- return GenMatrixKey(stage); |
+ static EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { |
+ return GenMatrixKey(drawEffect); |
} |
private: |
@@ -554,15 +553,14 @@ |
///////////////////////////////////////////////////////////////////// |
void GrGLRadialGradient::emitCode(GrGLShaderBuilder* builder, |
- const GrEffectStage&, |
+ const GrDrawEffect&, |
EffectKey key, |
- const char* vertexCoords, |
const char* outputColor, |
const char* inputColor, |
const TextureSamplerArray& samplers) { |
this->emitYCoordUniform(builder); |
const char* coords; |
- this->setupMatrix(builder, key, vertexCoords, &coords); |
+ this->setupMatrix(builder, key, &coords); |
SkString t("length("); |
t.append(coords); |
t.append(")"); |