aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/gradients/SkGradientShaderPriv.h
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-11-11 06:27:20 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-11 06:27:20 -0800
commit8dcdedc4a087ea46ce1e2458d335d60918e56310 (patch)
tree40ef4cd4b187fceb923c4de5d7311b7684d7d6e8 /src/effects/gradients/SkGradientShaderPriv.h
parent49115b57cb9d260ddd49a6905ee87af63b3ab066 (diff)
Make GrGLSLProgramBuilder base class for GrGLProgramBuilder.
This CL still keeps the weird diamond shape we have for all our ProgramBuilders. However, the GrGLSL base class will allow us to pull multiple other parts of our program setup away from GL which will eventually allow us to break up the diamond. As part of this all ShaderBuilder subclass have been made gl independent, however I will move them to GLSL files/class names in a follow on CL. BUG=skia: Review URL: https://codereview.chromium.org/1416423003
Diffstat (limited to 'src/effects/gradients/SkGradientShaderPriv.h')
-rw-r--r--src/effects/gradients/SkGradientShaderPriv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h
index 2286c22fd5..a295b5cf93 100644
--- a/src/effects/gradients/SkGradientShaderPriv.h
+++ b/src/effects/gradients/SkGradientShaderPriv.h
@@ -414,13 +414,13 @@ protected:
// Emits the uniform used as the y-coord to texture samples in derived classes. Subclasses
// should call this method from their emitCode().
- void emitUniforms(GrGLFPBuilder* builder, const GrGradientEffect&);
+ void emitUniforms(GrGLSLFPBuilder* builder, const GrGradientEffect&);
// emit code that gets a fragment's color from an expression for t; Has branches for 3 separate
// control flows inside -- 2 color gradients, 3 color symmetric gradients (both using
// native GLSL mix), and 4+ color gradients that use the traditional texture lookup.
- void emitColor(GrGLFPBuilder* builder,
+ void emitColor(GrGLSLFPBuilder* builder,
const GrGradientEffect&,
const char* gradientTValue,
const char* outputColor,