Changeset 104472 in webkit


Ignore:
Timestamp:
Jan 9, 2012 11:46:30 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Chromium] JPEG RGB swizzling order should match platform pixel format
https://bugs.webkit.org/show_bug.cgi?id=75861

Choose between JCS_EXT_BGRX and JCS_EXT_RGBX channel swizzling
based on the configured Skia 32-bit pixel format.

Patch by Sami Kyostila <skyostil@chromium.org> on 2012-01-09
Reviewed by Kenneth Russell.

  • platform/image-decoders/jpeg/JPEGImageDecoder.cpp:

(rgbOutputColorSpace):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r104469 r104472  
     12012-01-09  Sami Kyostila  <skyostil@chromium.org>
     2
     3        [Chromium] JPEG RGB swizzling order should match platform pixel format
     4        https://bugs.webkit.org/show_bug.cgi?id=75861
     5
     6        Choose between JCS_EXT_BGRX and JCS_EXT_RGBX channel swizzling
     7        based on the configured Skia 32-bit pixel format.
     8
     9        Reviewed by Kenneth Russell.
     10
     11        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
     12        (rgbOutputColorSpace):
     13
    1142012-01-09  Alexis Menard  <alexis.menard@openbossa.org>
    215
  • trunk/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp

    r104010 r104472  
    7676#if defined(JCS_EXTENSIONS) && ASSUME_LITTLE_ENDIAN
    7777#define TURBO_JPEG_RGB_SWIZZLE
     78#if USE(SKIA) && (!SK_R32_SHIFT && SK_G32_SHIFT == 8 && SK_B32_SHIFT == 16)
     79inline J_COLOR_SPACE rgbOutputColorSpace() { return JCS_EXT_RGBX; }
     80#else
    7881inline J_COLOR_SPACE rgbOutputColorSpace() { return JCS_EXT_BGRX; }
     82#endif
    7983inline bool turboSwizzled(J_COLOR_SPACE colorSpace) { return colorSpace == rgbOutputColorSpace(); }
    8084#else
Note: See TracChangeset for help on using the changeset viewer.