aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrBicubicEffect.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-10-06 08:40:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-06 08:40:51 -0700
commit4a339529612a43871d021877e58698e067d6c4cd (patch)
treea46e5271f68b194f4351271c1faa65568c9606fd /src/gpu/effects/GrBicubicEffect.h
parente1f829699958b673dfe196c80d17a55d18d0fc4b (diff)
Bye bye processor data manager.
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.h')
-rw-r--r--src/gpu/effects/GrBicubicEffect.h34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.h b/src/gpu/effects/GrBicubicEffect.h
index 18382a3a7d..9167b9cc6f 100644
--- a/src/gpu/effects/GrBicubicEffect.h
+++ b/src/gpu/effects/GrBicubicEffect.h
@@ -32,16 +32,15 @@ public:
/**
* Create a simple filter effect with custom bicubic coefficients and optional domain.
*/
- static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, GrTexture* tex,
- const SkScalar coefficients[16],
+ static GrFragmentProcessor* Create(GrTexture* tex, const SkScalar coefficients[16],
const SkRect* domain = nullptr) {
if (nullptr == domain) {
static const SkShader::TileMode kTileModes[] = { SkShader::kClamp_TileMode,
SkShader::kClamp_TileMode };
- return Create(procDataManager, tex, coefficients,
- GrCoordTransform::MakeDivByTextureWHMatrix(tex), kTileModes);
+ return Create(tex, coefficients, GrCoordTransform::MakeDivByTextureWHMatrix(tex),
+ kTileModes);
} else {
- return new GrBicubicEffect(procDataManager, tex, coefficients,
+ return new GrBicubicEffect(tex, coefficients,
GrCoordTransform::MakeDivByTextureWHMatrix(tex), *domain);
}
}
@@ -49,28 +48,27 @@ public:
/**
* Create a Mitchell filter effect with specified texture matrix and x/y tile modes.
*/
- static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, GrTexture* tex,
- const SkMatrix& matrix,
+ static GrFragmentProcessor* Create(GrTexture* tex, const SkMatrix& matrix,
SkShader::TileMode tileModes[2]) {
- return Create(procDataManager, tex, gMitchellCoefficients, matrix, tileModes);
+ return Create(tex, gMitchellCoefficients, matrix, tileModes);
}
/**
* Create a filter effect with custom bicubic coefficients, the texture matrix, and the x/y
* tilemodes.
*/
- static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, GrTexture* tex,
- const SkScalar coefficients[16], const SkMatrix& matrix,
+ static GrFragmentProcessor* Create(GrTexture* tex, const SkScalar coefficients[16],
+ const SkMatrix& matrix,
const SkShader::TileMode tileModes[2]) {
- return new GrBicubicEffect(procDataManager, tex, coefficients, matrix, tileModes);
+ return new GrBicubicEffect(tex, coefficients, matrix, tileModes);
}
/**
* Create a Mitchell filter effect with a texture matrix and a domain.
*/
- static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, GrTexture* tex,
- const SkMatrix& matrix, const SkRect& domain) {
- return new GrBicubicEffect(procDataManager, tex, gMitchellCoefficients, matrix, domain);
+ static GrFragmentProcessor* Create(GrTexture* tex, const SkMatrix& matrix,
+ const SkRect& domain) {
+ return new GrBicubicEffect(tex, gMitchellCoefficients, matrix, domain);
}
/**
@@ -84,10 +82,10 @@ public:
GrTextureParams::FilterMode* filterMode);
private:
- GrBicubicEffect(GrProcessorDataManager*, GrTexture*, const SkScalar coefficients[16],
- const SkMatrix &matrix, const SkShader::TileMode tileModes[2]);
- GrBicubicEffect(GrProcessorDataManager*, GrTexture*, const SkScalar coefficients[16],
- const SkMatrix &matrix, const SkRect& domain);
+ GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix,
+ const SkShader::TileMode tileModes[2]);
+ GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix,
+ const SkRect& domain);
GrGLFragmentProcessor* onCreateGLInstance() const override;