<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>231653</bug_id>
          
          <creation_ts>2021-10-12 19:02:56 -0700</creation_ts>
          <short_desc>[TextureMapper] large blur filter doesn&apos;t look smooth</short_desc>
          <delta_ts>2023-09-07 03:00:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=87695</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>261022</dependson>
    
    <dependson>261101</dependson>
    
    <dependson>261102</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aki.develop8128</cc>
    
    <cc>cgarcia</cc>
    
    <cc>kdwkleung</cc>
    
    <cc>smoley</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1803618</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-10-12 19:02:56 -0700</bug_when>
    <thetext>[TextureMapper] large blur filter doesn&apos;t look smooth

attachment#413757

https://speakerdeck.com/trishagee/code-review-best-practice</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806454</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-19 19:03:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/84444307&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1811325</commentid>
    <comment_count>2</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2021-11-02 17:19:27 -0700</bug_when>
    <thetext>Thanks for filing, the attached test case and the linked page both look smooth for me on Safari Technology Preview 134. Are you seeing this issue there as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1811339</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-11-02 18:23:25 -0700</bug_when>
    <thetext>TextureMapper is used only by GTK, WPE, WinCairo and PlayStation ports.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1844425</commentid>
    <comment_count>4</comment_count>
      <attachid>452789</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-02-21 15:56:44 -0800</bug_when>
    <thetext>Created attachment 452789
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878447</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-06-26 23:09:27 -0700</bug_when>
    <thetext>FEGaussianBlurSoftwareApplier::boxBlurUnaccelerated is applying box-blur three times.
https://github.com/WebKit/WebKit/blob/a713d4c4e774133040e273ce5c2ec5e8ebf85e02/Source/WebCore/platform/graphics/filters/software/FEGaussianBlurSoftwareApplier.cpp#L302-L328

This is suggested by the spec:
https://drafts.fxtf.org/filter-effects/#feGaussianBlurElement

&gt; For larger values of &quot;s&quot; (s &gt;= 2.0), an approximation can be
&gt; used: Three successive box-blurs build a piece-wise quadratic
&gt; convolution kernel, which approximates the Gaussian kernel to
&gt; within roughly 3%.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974941</commentid>
    <comment_count>6</comment_count>
    <who name="Akihiro Kiuchi">aki.develop8128</who>
    <bug_when>2023-09-01 00:30:52 -0700</bug_when>
    <thetext>I will tackle this issue under mentorship of Fujii-san.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976037</commentid>
    <comment_count>7</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-09-06 20:33:30 -0700</bug_when>
    <thetext>All sub tasks have been resovled. No more remaining tasks. Closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976062</commentid>
    <comment_count>8</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-09-07 00:40:02 -0700</bug_when>
    <thetext>Could you add a link here to the PR fixing this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976063</commentid>
    <comment_count>9</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-09-07 00:48:43 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/17419 fixed the pixelated problem.
https://github.com/WebKit/WebKit/pull/17471 is a speed up Gaussian blur filtrer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976086</commentid>
    <comment_count>10</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-09-07 03:00:45 -0700</bug_when>
    <thetext>Thanks, great job!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>452789</attachid>
            <date>2022-02-21 15:56:44 -0800</date>
            <delta_ts>2022-02-21 15:56:44 -0800</delta_ts>
            <desc>test case</desc>
            <filename>drop-shadow-and-blur.html</filename>
            <type>text/html</type>
            <size>452</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHN0eWxlPgogICAgICBkaXYgewog
ICAgICAgICAgbWFyZ2luOiAyMDBweCAyMDBweDsKICAgICAgICAgIHdpZHRoOiAyMDBweDsKICAg
ICAgICAgIGhlaWdodDogMjAwcHg7CiAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBncmVlbjsK
ICAgICAgICAgIHdpbGwtY2hhbmdlOiB0cmFuc2Zvcm07CiAgICAgIH0KICAgICAgI3ggewogICAg
ICAgICAgZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgNTBweCBibGFjayk7CiAgICAgIH0KICAgICAg
I3kgewoJICBmaWx0ZXI6IGJsdXIoNTBweCk7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9oZWFk
PgogIDxib2R5PgogICAgZHJvcC1zaGFkb3cgZmlsdGVyCiAgICA8ZGl2IGlkPXg+PC9kaXY+CiAg
ICBibHVyIGZpbHRlcgogICAgPGRpdiBpZD15PjwvZGl2PgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>