compare kernel in GrBicubicEffect

Change-Id: Ic22cc3bea766c41d7061816ad186cf7504be91ba
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344970
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2020-12-21 14:41:48 -05:00 committed by Skia Commit-Bot
parent cdff3fcba6
commit c3622f43c1

View File

@ -229,7 +229,10 @@ GrGLSLFragmentProcessor* GrBicubicEffect::onCreateGLSLInstance() const { return
bool GrBicubicEffect::onIsEqual(const GrFragmentProcessor& other) const { bool GrBicubicEffect::onIsEqual(const GrFragmentProcessor& other) const {
const auto& that = other.cast<GrBicubicEffect>(); const auto& that = other.cast<GrBicubicEffect>();
return fDirection == that.fDirection && fClamp == that.fClamp; return fDirection == that.fDirection &&
fClamp == that.fClamp &&
fKernel.B == that.fKernel.B &&
fKernel.C == that.fKernel.C;
} }
SkPMColor4f GrBicubicEffect::constantOutputForConstantInput(const SkPMColor4f& input) const { SkPMColor4f GrBicubicEffect::constantOutputForConstantInput(const SkPMColor4f& input) const {