Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: src/gpu/effects/GrBicubicEffect.h

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/effects/Gr1DKernelEffect.h ('k') | src/gpu/effects/GrBicubicEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/gpu/effects/Gr1DKernelEffect.h ('k') | src/gpu/effects/GrBicubicEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698