diff options
Diffstat (limited to 'src/effects/gradients/SkGradientShader.cpp')
-rw-r--r-- | src/effects/gradients/SkGradientShader.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp index 9a965ff817..cc7e13ccb6 100644 --- a/src/effects/gradients/SkGradientShader.cpp +++ b/src/effects/gradients/SkGradientShader.cpp @@ -719,7 +719,7 @@ void GrGLGradientStage::emitColorLookup(GrGLShaderBuilder* builder, GrGradientEffect::GrGradientEffect(GrContext* ctx, const SkGradientShaderBase& shader, SkShader::TileMode tileMode) - : fUseTexture (true) { + : INHERITED(1) { // TODO: check for simple cases where we don't need a texture: //GradientInfo info; //shader.asAGradient(&info); @@ -765,12 +765,8 @@ GrGradientEffect::~GrGradientEffect() { } } -int GrGradientEffect::numTextures() const { - return fUseTexture ? 1 : 0; -} - const GrTextureAccess& GrGradientEffect::textureAccess(int index) const { - GrAssert(fUseTexture && 0 == index); + GrAssert(0 == index); return fTextureAccess; } |