<?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>71962</bug_id>
          
          <creation_ts>2011-11-09 16:01:57 -0800</creation_ts>
          <short_desc>Simplify the way that images are passed into a filter chain</short_desc>
          <delta_ts>2018-09-03 10:51:30 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>dino</cc>
    
    <cc>krit</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>499432</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-11-09 16:01:57 -0800</bug_when>
    <thetext>Looking at the patch in bug 68472, I think the way that data gets into and out of filter chains could be improved. The code currently has to do:

m_filter-&gt;setSourceImageRect(size);
m_filter-&gt;setSourceImage(ImageBuffer::create(layoutSize));
GraphicsContext* sourceGraphicsContext = m_filter-&gt;sourceImage()-&gt;context();
// paint stuff

m_filter-&gt;effect()-&gt;apply();
p-&gt;drawImageBuffer(m_filter-&gt;effect()-&gt;asImageBuffer(), ...)


It seems like it would be much clearer as:

1. Make an ImageBuffer
2. Paint into the ImageBuffer
3. Hand the ImageBuffer to the filter.
4. Get the filtered result as an image buffer
5. Paint that image buffer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>501117</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2011-11-11 14:42:32 -0800</bug_when>
    <thetext>&lt;rdar://problem/10435248&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925418</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2013-09-05 23:35:19 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Looking at the patch in bug 68472, I think the way that data gets into and out of filter chains could be improved. The code currently has to do:
&gt; 
&gt; m_filter-&gt;setSourceImageRect(size);
&gt; m_filter-&gt;setSourceImage(ImageBuffer::create(layoutSize));
&gt; GraphicsContext* sourceGraphicsContext = m_filter-&gt;sourceImage()-&gt;context();
&gt; // paint stuff
&gt; 
&gt; m_filter-&gt;effect()-&gt;apply();
&gt; p-&gt;drawImageBuffer(m_filter-&gt;effect()-&gt;asImageBuffer(), ...)
&gt; 
&gt; 
&gt; It seems like it would be much clearer as:
&gt; 
&gt; 1. Make an ImageBuffer
&gt; 2. Paint into the ImageBuffer
&gt; 3. Hand the ImageBuffer to the filter.
&gt; 4. Get the filtered result as an image buffer
&gt; 5. Paint that image buffer.

Well, that seems what we are doing right now. What is your suggestion?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1456186</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-09-03 10:51:30 -0700</bug_when>
    <thetext>True dat.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>