Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index f11d0787b9916198cfd7841972dff27c17fcaa6d..fcdb62fe8f7aeee5dd71f1fad37bacac5c07c623 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -1090,7 +1090,7 @@ void GrGLGradientEffect::emitColor(GrGLSLFPBuilder* builder, |
GrGradientEffect::GrGradientEffect(GrContext* ctx, |
const SkGradientShaderBase& shader, |
const SkMatrix& matrix, |
- SkShader::TileMode tileMode) { |
+ SkShader::TileMode tileMode, GrRenderTarget* dst) { |
fIsOpaque = shader.isOpaque(); |
@@ -1131,14 +1131,14 @@ GrGradientEffect::GrGradientEffect(GrContext* ctx, |
if (-1 != fRow) { |
fYCoord = fAtlas->getYOffset(fRow) + SK_ScalarHalf * fAtlas->getNormalizedTexelHeight(); |
fCoordTransform.reset(kCoordSet, matrix, fAtlas->getTexture(), params.filterMode()); |
- fTextureAccess.reset(fAtlas->getTexture(), params); |
+ fTextureAccess.reset(fAtlas->getTexture(), params, dst); |
} else { |
SkAutoTUnref<GrTexture> texture(GrRefCachedBitmapTexture(ctx, bitmap, params)); |
if (!texture) { |
return; |
} |
fCoordTransform.reset(kCoordSet, matrix, texture, params.filterMode()); |
- fTextureAccess.reset(texture, params); |
+ fTextureAccess.reset(texture, params, dst); |
fYCoord = SK_ScalarHalf; |
} |
this->addTextureAccess(&fTextureAccess); |