diff options
author | Brian Salomon <bsalomon@google.com> | 2017-09-07 12:36:34 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-07 16:58:31 +0000 |
commit | 2bbdcc44c63974f29f3743bb58d929601a3f65c6 (patch) | |
tree | d420f298f606b061054e56866d1930ab84f00ed5 /src/gpu/effects/GrBicubicEffect.h | |
parent | 4df0092eac6e9bb5afc516773a0c618630193dc6 (diff) |
Rework GrSamplerParams to be more compact and use its own wrap mode enum.
The main change is to make GrSamplerParams smaller by making its enums have byte-sized underlying types. The rest is cosmetic.
Change-Id: Ib71ea50612d24619a85e463826c6b8dfb9b445e3
Reviewed-on: https://skia-review.googlesource.com/43200
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.h')
-rw-r--r-- | src/gpu/effects/GrBicubicEffect.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.h b/src/gpu/effects/GrBicubicEffect.h index 7812f3fcb0..b0a28d9b0d 100644 --- a/src/gpu/effects/GrBicubicEffect.h +++ b/src/gpu/effects/GrBicubicEffect.h @@ -36,9 +36,9 @@ public: static std::unique_ptr<GrFragmentProcessor> Make(sk_sp<GrTextureProxy> proxy, sk_sp<GrColorSpaceXform> colorSpaceXform, const SkMatrix& matrix, - const SkShader::TileMode tileModes[2]) { + const GrSamplerState::WrapMode wrapModes[2]) { return std::unique_ptr<GrFragmentProcessor>(new GrBicubicEffect( - std::move(proxy), std::move(colorSpaceXform), matrix, tileModes)); + std::move(proxy), std::move(colorSpaceXform), matrix, wrapModes)); } /** @@ -60,11 +60,11 @@ public: * kNearest). */ static bool ShouldUseBicubic(const SkMatrix& localCoordsToDevice, - GrSamplerParams::FilterMode* filterMode); + GrSamplerState::Filter* filterMode); private: - GrBicubicEffect(sk_sp<GrTextureProxy>, sk_sp<GrColorSpaceXform>, - const SkMatrix &matrix, const SkShader::TileMode tileModes[2]); + GrBicubicEffect(sk_sp<GrTextureProxy>, sk_sp<GrColorSpaceXform>, const SkMatrix& matrix, + const GrSamplerState::WrapMode wrapModes[2]); GrBicubicEffect(sk_sp<GrTextureProxy>, sk_sp<GrColorSpaceXform>, const SkMatrix &matrix, const SkRect& domain); explicit GrBicubicEffect(const GrBicubicEffect&); |