Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 15dc72ca9521ce9b61a9d91e4e8749482c59bd4c
      
https://github.com/WebKit/WebKit/commit/15dc72ca9521ce9b61a9d91e4e8749482c59bd4c
  Author: Fujii Hironori <hironori.fu...@sony.com>
  Date:   2023-12-14 (Thu, 14 Dec 2023)

  Changed paths:
    A 
LayoutTests/compositing/filters/drop-shadow-large-blur-radius-expected.html
    A LayoutTests/compositing/filters/drop-shadow-large-blur-radius.html
    M Source/WebCore/platform/graphics/texmap/TextureMapper.cpp

  Log Message:
  -----------
  [TextureMapper] shrinked blur radius of drop-shadow shouldn't exceed 
GaussianBlurMaxRadius
https://bugs.webkit.org/show_bug.cgi?id=265659

Reviewed by Michael Catanzaro.

TextureMapper::applyDropShadowFilter shrinks a source texture and a
blur radius of drop-shadow before applying a blur filter. The
downscaling ratio is based on the blur radius so that the shrinked
blur radius doesn't exceed GaussianBlurMaxRadius. However, the
calculation wasn't correct. it could slightly exceed
GaussianBlurMaxRadius if a blur radius is very large.

* LayoutTests/compositing/filters/drop-shadow-large-blur-radius-expected.html: 
Added.
* LayoutTests/compositing/filters/drop-shadow-large-blur-radius.html: Added.
* Source/WebCore/platform/graphics/texmap/TextureMapper.cpp:
Use std::min to radius as well as TextureMapper::applyBlurFilter does.

Canonical link: https://commits.webkit.org/272081@main


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to