<?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>88613</bug_id>
          
          <creation_ts>2012-06-07 21:25:39 -0700</creation_ts>
          <short_desc>[chromium] WEBP image blue and red color channels reversed on Android</short_desc>
          <delta_ts>2012-06-08 01:50:24 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://developers.google.com/speed/webp/gallery1</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="noel gordon">noel.gordon</reporter>
          <assigned_to name="noel gordon">noel.gordon</assigned_to>
          <cc>abarth</cc>
    
    <cc>pascal.massimino</cc>
    
    <cc>tkent</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>644297</commentid>
    <comment_count>0</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-07 21:25:39 -0700</bug_when>
    <thetext>The JPEG images (on the left) on this URL, and the WEBP images (right), should look identical.  On Chrome Android, the red and blue channels are reversed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644300</commentid>
    <comment_count>1</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-07 21:30:46 -0700</bug_when>
    <thetext>Skia android is LITTLE_ENDIAN, but it stores pixels RGBA, see https://bugs.webkit.org/show_bug.cgi?id=75861#c6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644321</commentid>
    <comment_count>2</comment_count>
      <attachid>146476</attachid>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-07 22:06:19 -0700</bug_when>
    <thetext>Created attachment 146476
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644332</commentid>
    <comment_count>3</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-07 22:18:21 -0700</bug_when>
    <thetext>http://b/6311532</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644339</commentid>
    <comment_count>4</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-07 22:31:52 -0700</bug_when>
    <thetext>Tools/Scripts/new-run-webkit-tests --chromium --release fast/images/webp-image-decoding.html

Works for me locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644342</commentid>
    <comment_count>5</comment_count>
      <attachid>146476</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-06-07 22:35:16 -0700</bug_when>
    <thetext>Comment on attachment 146476
Patch

rubber stamped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644371</commentid>
    <comment_count>6</comment_count>
    <who name="Pascal Massimino">pascal.massimino</who>
    <bug_when>2012-06-07 23:23:54 -0700</bug_when>
    <thetext>shouldn&apos;t the test be on &quot;SK_A32_SHIFT&quot;  instead of &quot;SK_B32_SHIFT&quot; ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644378</commentid>
    <comment_count>7</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-07 23:29:41 -0700</bug_when>
    <thetext>BGRA and RGBA -&gt; the A shift is identical on a little-endian CPU, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644389</commentid>
    <comment_count>8</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-07 23:43:56 -0700</bug_when>
    <thetext>Or for example, see bug 78540</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644411</commentid>
    <comment_count>9</comment_count>
    <who name="Pascal Massimino">pascal.massimino</who>
    <bug_when>2012-06-08 00:17:50 -0700</bug_when>
    <thetext>i&apos;m fine with either ways, it&apos;s just that i saw the test being

#ifndef SK_A32_SHIFT

...

#endif


at skia/include/core/SkPostConfig.h:165

your pick!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644428</commentid>
    <comment_count>10</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-08 00:40:53 -0700</bug_when>
    <thetext>Yes it&apos;s a little confusing, but but 78540 is your friend.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644430</commentid>
    <comment_count>11</comment_count>
      <attachid>146476</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-06-08 00:42:58 -0700</bug_when>
    <thetext>Comment on attachment 146476
Patch

Clearing flags on attachment: 146476

Committed r119807: &lt;http://trac.webkit.org/changeset/119807&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644431</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-06-08 00:43:03 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644433</commentid>
    <comment_count>13</comment_count>
    <who name="Pascal Massimino">pascal.massimino</who>
    <bug_when>2012-06-08 00:46:30 -0700</bug_when>
    <thetext>Fine with me, if just for the (important) sake of coherency.

Thanks for fixing this Noel!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644479</commentid>
    <comment_count>14</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2012-06-08 01:50:24 -0700</bug_when>
    <thetext>No worries.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>146476</attachid>
            <date>2012-06-07 22:06:19 -0700</date>
            <delta_ts>2012-06-08 00:42:57 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-88613-20120608150617.patch</filename>
            <type>text/plain</type>
            <size>1667</size>
            <attacher name="noel gordon">noel.gordon</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE5NzkyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZDcyY2E1ZDU4NDMwYWY0
Mjk4ZjJmMTdkZjg0ZDgwOThkMGMxNWI5Yy4uMGJhNzZhZTdiZDU4ZjFiNzJiZDNmODIzNDMyOWFl
MmIxZDY1NzhlZSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE3IEBACisyMDEyLTA2LTA3ICBOb2Vs
IEdvcmRvbiAgPG5vZWwuZ29yZG9uQGdtYWlsLmNvbT4KKworICAgICAgICBbY2hyb21pdW1dIFdF
QlAgaW1hZ2UgYmx1ZSBhbmQgcmVkIGNvbG9yIGNoYW5uZWxzIHJldmVyc2VkIG9uIEFuZHJvaWQK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTg4NjEzCisK
KyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgTm8gbmV3IHRl
c3RzLiBDb3ZlcmVkIGJ5IHRlc3QgZmFzdC9pbWFnZXMvd2VicC1pbWFnZS1kZWNvZGluZy5odG1s
IHRob3VnaCBJJ20KKyAgICAgICAgbm90IHN1cmUgd2hlcmUvaG93IHRoZSBBbmRyb2lkcyBydW4g
dGhlaXIgbGF5b3V0IHRlc3RzLgorCisgICAgICAgICogcG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