diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-30 15:50:22 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-30 15:50:22 +0000 |
commit | a21ad18618e552b09a3894bbf92a349b685c3739 (patch) | |
tree | f93237f5e71c63eb39e6810a4d4c0f46d4c43b88 | |
parent | b72e5d31383464171c01370c09cdbba77707e8ef (diff) |
Remove unnecessary mul and assignment in gradient shaders.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6814056
git-svn-id: http://skia.googlecode.com/svn/trunk@6201 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/effects/gradients/SkGradientShader.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp index f9bdf2f40e..3920026b75 100644 --- a/src/effects/gradients/SkGradientShader.cpp +++ b/src/effects/gradients/SkGradientShader.cpp @@ -705,7 +705,6 @@ void GrGLGradientEffect::emitColorLookup(GrGLShaderBuilder* builder, code->appendf("\tvec2 coord = vec2(%s, %s);\n", gradientTValue, builder->getUniformVariable(fFSYUni).c_str()); - GrGLSLMulVarBy4f(code, 1, outputColor, inputColor); code->appendf("\t%s = ", outputColor); builder->appendTextureLookupAndModulate(code, inputColor, sampler, "coord"); code->append(";\n"); |