| Index: src/effects/gradients/SkLinearGradient.cpp
|
| diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp
|
| index 2f56cb49ca21c2b4443663a5259def64bf31f24d..a5eb39d689713b9dda73fa4b10e39d015daafd7d 100644
|
| --- a/src/effects/gradients/SkLinearGradient.cpp
|
| +++ b/src/effects/gradients/SkLinearGradient.cpp
|
| @@ -1,4 +1,3 @@
|
| -
|
| /*
|
| * Copyright 2012 Google Inc.
|
| *
|
| @@ -452,7 +451,7 @@ public:
|
| const TextureSamplerArray&) SK_OVERRIDE;
|
|
|
| static EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) {
|
| - return GenMatrixKey(drawEffect);
|
| + return GenBaseGradientKey(drawEffect);
|
| }
|
|
|
| private:
|
| @@ -524,13 +523,13 @@ void GrGLLinearGradient::emitCode(GrGLShaderBuilder* builder,
|
| const char* outputColor,
|
| const char* inputColor,
|
| const TextureSamplerArray& samplers) {
|
| - this->emitYCoordUniform(builder);
|
| + this->emitUniforms(builder, key);
|
| const char* coords;
|
| this->setupMatrix(builder, key, &coords);
|
| SkString t;
|
| t.append(coords);
|
| t.append(".x");
|
| - this->emitColorLookup(builder, t.c_str(), outputColor, inputColor, samplers[0]);
|
| + this->emitColor(builder, t.c_str(), key, outputColor, inputColor, samplers);
|
| }
|
|
|
| /////////////////////////////////////////////////////////////////////
|
|
|