diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-26 19:07:15 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-26 23:31:30 +0000 |
commit | 6cd51b51d6603a3100b147c45f38697f2f199fc6 (patch) | |
tree | 55d6bebf39125e0cdb0cd30c4fb6f8489428931a /src/gpu/effects/GrBicubicEffect.h | |
parent | 7f97f49a840c92e26058034c631e8d76a54897bd (diff) |
Remove GrSingleTextureEffect
Change-Id: I510cc0657f9433b206dc2ab643fa557667263294
Reviewed-on: https://skia-review.googlesource.com/27180
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.h')
-rw-r--r-- | src/gpu/effects/GrBicubicEffect.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.h b/src/gpu/effects/GrBicubicEffect.h index e96d290629..0d4c7c5dd9 100644 --- a/src/gpu/effects/GrBicubicEffect.h +++ b/src/gpu/effects/GrBicubicEffect.h @@ -8,13 +8,12 @@ #ifndef GrBicubicTextureEffect_DEFINED #define GrBicubicTextureEffect_DEFINED -#include "GrSingleTextureEffect.h" #include "GrTextureDomain.h" #include "glsl/GrGLSLFragmentProcessor.h" class GrInvariantOutput; -class GrBicubicEffect : public GrSingleTextureEffect { +class GrBicubicEffect : public GrFragmentProcessor { public: enum { kFilterTexelPad = 2, // Given a src rect in texels to be filtered, this number of @@ -26,6 +25,8 @@ public: const GrTextureDomain& domain() const { return fDomain; } + const GrColorSpaceXform* colorSpaceXform() const { return fColorSpaceXform.get(); } + /** * Create a Mitchell filter effect with specified texture matrix and x/y tile modes. */ @@ -72,11 +73,14 @@ private: bool onIsEqual(const GrFragmentProcessor&) const override; + GrCoordTransform fCoordTransform; GrTextureDomain fDomain; + TextureSampler fTextureSampler; + sk_sp<GrColorSpaceXform> fColorSpaceXform; GR_DECLARE_FRAGMENT_PROCESSOR_TEST - typedef GrSingleTextureEffect INHERITED; + typedef GrFragmentProcessor INHERITED; }; #endif |