Index: src/gpu/effects/GrBicubicEffect.h |
diff --git a/src/gpu/effects/GrBicubicEffect.h b/src/gpu/effects/GrBicubicEffect.h |
index 5a54cc167dfcf689c80d68cd6fb7d2cc91430d0d..0ab799a110236fe8a80a2ada78a30881c53ce95f 100644 |
--- a/src/gpu/effects/GrBicubicEffect.h |
+++ b/src/gpu/effects/GrBicubicEffect.h |
@@ -33,15 +33,15 @@ public: |
* Create a simple filter effect with custom bicubic coefficients and optional domain. |
*/ |
static const GrFragmentProcessor* Create(GrTexture* tex, const SkScalar coefficients[16], |
- const SkRect* domain = nullptr) { |
+ const SkRect* domain, GrRenderTarget* dst) { |
if (nullptr == domain) { |
static const SkShader::TileMode kTileModes[] = { SkShader::kClamp_TileMode, |
SkShader::kClamp_TileMode }; |
- return Create(tex, coefficients, GrCoordTransform::MakeDivByTextureWHMatrix(tex), |
- kTileModes); |
+ return Create(tex, coefficients, GrCoordTransform::MakeDivByTextureWHMatrix(tex), |
+ kTileModes, dst); |
} else { |
return new GrBicubicEffect(tex, coefficients, |
- GrCoordTransform::MakeDivByTextureWHMatrix(tex), *domain); |
+ GrCoordTransform::MakeDivByTextureWHMatrix(tex), *domain, dst); |
} |
} |
@@ -49,8 +49,8 @@ public: |
* Create a Mitchell filter effect with specified texture matrix and x/y tile modes. |
*/ |
static const GrFragmentProcessor* Create(GrTexture* tex, const SkMatrix& matrix, |
- const SkShader::TileMode tileModes[2]) { |
- return Create(tex, gMitchellCoefficients, matrix, tileModes); |
+ const SkShader::TileMode tileModes[2], GrRenderTarget* dst) { |
+ return Create(tex, gMitchellCoefficients, matrix, tileModes, dst); |
} |
/** |
@@ -59,16 +59,16 @@ public: |
*/ |
static const GrFragmentProcessor* Create(GrTexture* tex, const SkScalar coefficients[16], |
const SkMatrix& matrix, |
- const SkShader::TileMode tileModes[2]) { |
- return new GrBicubicEffect(tex, coefficients, matrix, tileModes); |
+ const SkShader::TileMode tileModes[2], GrRenderTarget* dst) { |
+ return new GrBicubicEffect(tex, coefficients, matrix, tileModes, dst); |
} |
/** |
* Create a Mitchell filter effect with a texture matrix and a domain. |
*/ |
static const GrFragmentProcessor* Create(GrTexture* tex, const SkMatrix& matrix, |
- const SkRect& domain) { |
- return new GrBicubicEffect(tex, gMitchellCoefficients, matrix, domain); |
+ const SkRect& domain, GrRenderTarget* dst) { |
+ return new GrBicubicEffect(tex, gMitchellCoefficients, matrix, domain, dst); |
} |
/** |
@@ -83,9 +83,9 @@ public: |
private: |
GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix, |
- const SkShader::TileMode tileModes[2]); |
+ const SkShader::TileMode tileModes[2], GrRenderTarget* dst); |
GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix, |
- const SkRect& domain); |
+ const SkRect& domain, GrRenderTarget* dst); |
GrGLFragmentProcessor* onCreateGLInstance() const override; |