<?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>149424</bug_id>
          
          <creation_ts>2015-09-21 15:40:32 -0700</creation_ts>
          <short_desc>CSSFilterImageValue::image makes an unconditionally unaccelerated ImageBuffer</short_desc>
          <delta_ts>2022-01-19 12:49:12 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=235376</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Horton">thorton</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>frankhome61</cc>
    
    <cc>glenn</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>macpherson</cc>
    
    <cc>menard</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1127787</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2015-09-21 15:40:32 -0700</bug_when>
    <thetext>The ImageBuffer should inherit the accelerated bit from the context it will eventually be painted into.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685360</commentid>
    <comment_count>1</comment_count>
      <attachid>407897</attachid>
    <who name="">frankhome61</who>
    <bug_when>2020-09-03 11:22:03 -0700</bug_when>
    <thetext>Created attachment 407897
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685362</commentid>
    <comment_count>2</comment_count>
    <who name="">frankhome61</who>
    <bug_when>2020-09-03 11:23:43 -0700</bug_when>
    <thetext>Should just consult renderer.page().settings() to get the rendering mode setting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685369</commentid>
    <comment_count>3</comment_count>
      <attachid>407897</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-09-03 11:39:42 -0700</bug_when>
    <thetext>Comment on attachment 407897
Patch

This seems wrong. It should only make an accelerated buffer if we know the filter chain can be rendered via Core Image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685377</commentid>
    <comment_count>4</comment_count>
    <who name="">frankhome61</who>
    <bug_when>2020-09-03 11:44:03 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #3)
&gt; Comment on attachment 407897 [details]
&gt; Patch
&gt; 
&gt; This seems wrong. It should only make an accelerated buffer if we know the
&gt; filter chain can be rendered via Core Image.

Oh this has nothing to do with CoreImage, this is simply trying to address the fact that the ImageBuffer created inside CSSFilterImageValue is Unaccelerated unconditionally, and pass it on to CSSFilter. CoreImage is not involved in this process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685378</commentid>
    <comment_count>5</comment_count>
    <who name="">frankhome61</who>
    <bug_when>2020-09-03 11:45:19 -0700</bug_when>
    <thetext>(In reply to guowei_yang from comment #4)
&gt; (In reply to Simon Fraser (smfr) from comment #3)
&gt; &gt; Comment on attachment 407897 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; This seems wrong. It should only make an accelerated buffer if we know the
&gt; &gt; filter chain can be rendered via Core Image.
&gt; 
&gt; Oh this has nothing to do with CoreImage, this is simply trying to address
&gt; the fact that the ImageBuffer created inside CSSFilterImageValue is
&gt; Unaccelerated unconditionally, and pass it on to CSSFilter. CoreImage is not
&gt; involved in this process.

P.S. this patch has nothing to do with my project, just something I spotted while looking through different files</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685379</commentid>
    <comment_count>6</comment_count>
    <who name="">frankhome61</who>
    <bug_when>2020-09-03 11:47:18 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #3)
&gt; Comment on attachment 407897 [details]
&gt; Patch
&gt; 
&gt; This seems wrong. It should only make an accelerated buffer if we know the
&gt; filter chain can be rendered via Core Image.

Also before we introduced CoreImage into the codebase, CSSFilter::allocateBackingStoreIfNeeded() also consults renderer.page().settings() to determine which kind of ImageBuffer backend to create. So I would only assume the same procedure should happen here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685381</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-09-03 11:55:51 -0700</bug_when>
    <thetext>settings().acceleratedFiltersEnabled() was added for another platform and used to do nothing on Apple platforms. You&apos;ve started to use it for the CI acceleration, which is fine.

However, we know this code path (on Apple platforms) always hits the non-accelerated filter path, so we should not use this switch to make an accelerated buffer; that will slow things down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685382</commentid>
    <comment_count>8</comment_count>
    <who name="">frankhome61</who>
    <bug_when>2020-09-03 11:57:24 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #7)
&gt; settings().acceleratedFiltersEnabled() was added for another platform and
&gt; used to do nothing on Apple platforms. You&apos;ve started to use it for the CI
&gt; acceleration, which is fine.
&gt; 
&gt; However, we know this code path (on Apple platforms) always hits the
&gt; non-accelerated filter path, so we should not use this switch to make an
&gt; accelerated buffer; that will slow things down.

Oh okay. I guess this bug should be ignored then</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685383</commentid>
    <comment_count>9</comment_count>
    <who name="">frankhome61</who>
    <bug_when>2020-09-03 11:57:34 -0700</bug_when>
    <thetext>(In reply to guowei_yang from comment #8)
&gt; (In reply to Simon Fraser (smfr) from comment #7)
&gt; &gt; settings().acceleratedFiltersEnabled() was added for another platform and
&gt; &gt; used to do nothing on Apple platforms. You&apos;ve started to use it for the CI
&gt; &gt; acceleration, which is fine.
&gt; &gt; 
&gt; &gt; However, we know this code path (on Apple platforms) always hits the
&gt; &gt; non-accelerated filter path, so we should not use this switch to make an
&gt; &gt; accelerated buffer; that will slow things down.
&gt; 
&gt; Oh okay. I guess this bug should be ignored then

&quot;bug&quot;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>407897</attachid>
            <date>2020-09-03 11:22:03 -0700</date>
            <delta_ts>2020-09-03 13:44:07 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-149424-20200903112202.patch</filename>
            <type>text/plain</type>
            <size>1953</size>
            <attacher>frankhome61</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjY2MjgxCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMWMxZjViYzkyNTFjNDRm
ZTM5OTQ1YmJlNjkzMzUzNTNhMGFiZmJmZC4uMTExZjg5NTYyNTZkNDc5MDhlY2JkNjE2NmI1MjFm
MGRhYWIyNDY4NSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0IEBACisyMDIwLTA5LTAzICBGcmFu
ayBZYW5nICA8Z3Vvd2VpX3lhbmdAYXBwbGUuY29tPgorCisgICAgICAgIENTU0ZpbHRlckltYWdl
VmFsdWU6OmltYWdlIG1ha2VzIGFuIHVuY29uZGl0aW9uYWxseSB1bmFjY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