diff options
author | bsalomon <bsalomon@google.com> | 2014-07-08 09:56:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-08 09:56:11 -0700 |
commit | 83d081ae1d731b5039e99823620f5e287542ee39 (patch) | |
tree | 5deeda75fa4584b904a129dc4c1981f002b4cc14 /src/gpu/effects/GrBicubicEffect.h | |
parent | ca95c19d27b505a1ac8f57b53cb49c198bc29267 (diff) |
Goodbye GrEffectRef.
Also, reworked some var names and comments around SkShader::asNewEffect.
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/374923002
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.h')
-rw-r--r-- | src/gpu/effects/GrBicubicEffect.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.h b/src/gpu/effects/GrBicubicEffect.h index eea4d4e883..6cfb827415 100644 --- a/src/gpu/effects/GrBicubicEffect.h +++ b/src/gpu/effects/GrBicubicEffect.h @@ -37,8 +37,8 @@ public: /** * Create a simple filter effect with custom bicubic coefficients and optional domain. */ - static GrEffectRef* Create(GrTexture* tex, const SkScalar coefficients[16], - const SkRect* domain = NULL) { + static GrEffect* Create(GrTexture* tex, const SkScalar coefficients[16], + const SkRect* domain = NULL) { if (NULL == domain) { static const SkShader::TileMode kTileModes[] = { SkShader::kClamp_TileMode, SkShader::kClamp_TileMode }; @@ -52,8 +52,8 @@ public: /** * Create a Mitchell filter effect with specified texture matrix and x/y tile modes. */ - static GrEffectRef* Create(GrTexture* tex, const SkMatrix& matrix, - SkShader::TileMode tileModes[2]) { + static GrEffect* Create(GrTexture* tex, const SkMatrix& matrix, + SkShader::TileMode tileModes[2]) { return Create(tex, gMitchellCoefficients, matrix, tileModes); } @@ -61,15 +61,15 @@ public: * Create a filter effect with custom bicubic coefficients, the texture matrix, and the x/y * tilemodes. */ - static GrEffectRef* Create(GrTexture* tex, const SkScalar coefficients[16], - const SkMatrix& matrix, const SkShader::TileMode tileModes[2]) { + static GrEffect* Create(GrTexture* tex, const SkScalar coefficients[16], + const SkMatrix& matrix, const SkShader::TileMode tileModes[2]) { return SkNEW_ARGS(GrBicubicEffect, (tex, coefficients, matrix, tileModes)); } /** * Create a Mitchell filter effect with a texture matrix and a domain. */ - static GrEffectRef* Create(GrTexture* tex, const SkMatrix& matrix, const SkRect& domain) { + static GrEffect* Create(GrTexture* tex, const SkMatrix& matrix, const SkRect& domain) { return SkNEW_ARGS(GrBicubicEffect, (tex, gMitchellCoefficients, matrix, domain)); } |