diff options
Diffstat (limited to 'src/gpu/effects/GrRectBlurEffect.h')
-rw-r--r-- | src/gpu/effects/GrRectBlurEffect.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gpu/effects/GrRectBlurEffect.h b/src/gpu/effects/GrRectBlurEffect.h index 42c2829d6d..47e9dc3851 100644 --- a/src/gpu/effects/GrRectBlurEffect.h +++ b/src/gpu/effects/GrRectBlurEffect.h @@ -63,17 +63,7 @@ public: float sigma() const { return fSigma; } static std::unique_ptr<GrFragmentProcessor> Make(GrProxyProvider* proxyProvider, - const GrShaderCaps& caps, const SkRect& rect, - float sigma) { - if (!caps.floatIs32Bits()) { - // We promote the rect uniform from half to float when it has large values for - // precision. If we don't have full float then fail. - if (abs(rect.fLeft) > 16000 || abs(rect.fTop) > 16000 || abs(rect.fRight) > 16000 || - abs(rect.fBottom) > 16000 || abs(rect.width()) > 16000 || - abs(rect.height()) > 16000) { - return nullptr; - } - } + const SkRect& rect, float sigma) { int doubleProfileSize = SkScalarCeilToInt(12 * sigma); if (doubleProfileSize >= rect.width() || doubleProfileSize >= rect.height()) { |