<?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>53949</bug_id>
          
          <creation_ts>2011-02-07 14:56:34 -0800</creation_ts>
          <short_desc>ImageDecoder.h hardcodes RGBA byteorder on Skia</short_desc>
          <delta_ts>2011-02-08 09:17:09 -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>Images</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>0</everconfirmed>
          <reporter name="George Wright">gwright</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>pkasting</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>346836</commentid>
    <comment_count>0</comment_count>
    <who name="George Wright">gwright</who>
    <bug_when>2011-02-07 14:56:34 -0800</bug_when>
    <thetext>At the moment the setRGBA function in ImageDecoder.h hard codes the colour byte order:

*dest = (a &lt;&lt; 24 | r &lt;&lt; 16 | g &lt;&lt; 8 | b);

In Skia&apos;s case this should use Skia&apos;s helper function SkPackARGB32.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>346839</commentid>
    <comment_count>1</comment_count>
      <attachid>81531</attachid>
    <who name="George Wright">gwright</who>
    <bug_when>2011-02-07 15:00:13 -0800</bug_when>
    <thetext>Created attachment 81531
Use SkPackARGB32 in Skia&apos;s case

Patch to use SkPackARGB32 in Skia&apos;s case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>346850</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-07 15:07:11 -0800</bug_when>
    <thetext>I&apos;m confused why this needs to be in a shared file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>346855</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2011-02-07 15:09:41 -0800</bug_when>
    <thetext>This looks OK to me.

(In reply to comment #2)
&gt; I&apos;m confused why this needs to be in a shared file.

It needs to be inlined into all the decoders.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>346914</commentid>
    <comment_count>4</comment_count>
      <attachid>81531</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-02-07 16:00:12 -0800</bug_when>
    <thetext>Comment on attachment 81531
Use SkPackARGB32 in Skia&apos;s case

This change is fine, but it illustrates some of the design problems with this class.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>347366</commentid>
    <comment_count>5</comment_count>
      <attachid>81531</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-02-08 07:44:15 -0800</bug_when>
    <thetext>Comment on attachment 81531
Use SkPackARGB32 in Skia&apos;s case

cq+ as requested by gw280 on IRC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>347437</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-08 09:15:52 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 81531:

http/tests/websocket/tests/error-detect.html bug 54012 (author: abarth@webkit.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>347438</commentid>
    <comment_count>7</comment_count>
      <attachid>81531</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-08 09:17:04 -0800</bug_when>
    <thetext>Comment on attachment 81531
Use SkPackARGB32 in Skia&apos;s case

Clearing flags on attachment: 81531

Committed r77946: &lt;http://trac.webkit.org/changeset/77946&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>347439</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-08 09:17:09 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>81531</attachid>
            <date>2011-02-07 15:00:13 -0800</date>
            <delta_ts>2011-02-08 09:17:04 -0800</delta_ts>
            <desc>Use SkPackARGB32 in Skia&apos;s case</desc>
            <filename>colourorder.patch</filename>
            <type>text/plain</type>
            <size>1876</size>
            <attacher name="George Wright">gwright</attacher>
            
              <data encoding="base64">Y29tbWl0IGMxNmM4ZDlmMWZkZDZlYmMwNmJhN2QwZGJlMjUxNjUzNDMwMTRiY2EKQXV0aG9yOiBH
ZW9yZ2UgV3JpZ2h0IDxnd3JpZ2h0QHJpbS5jb20+CkRhdGU6ICAgTW9uIEZlYiA3IDE3OjQ5OjUz
IDIwMTEgLTA1MDAKCiAgICAyMDExLTAyLTA3ICBHZW9yZ2UgV3JpZ2h0ICA8Z3dyaWdodEByaW0u
Y29tPgogICAgCiAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTUzOTQ5CiAgICAKICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KICAgIAogICAg
ICAgIEVuc3VyZSB0aGF0IHdlIHBhY2sgdGhlIGNvbG91ciBieXRlIG9yZGVyIGNvcnJlY3RseSBm
b3IgU2tpYSB1c2luZwogICAgICAgIFNraWEncyBTa1BhY2tBUkdCMzIgZnVuY3Rpb24uCiAgICAK
ICAgICAgICAqI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