Changeset 105230 in webkit


Ignore:
Timestamp:
Jan 17, 2012 7:09:16 PM (12 years ago)
Author:
kbr@google.com
Message:

[chromium] Apply color profiles in more cases
https://bugs.webkit.org/show_bug.cgi?id=76498

Reviewed by Stephen White.

Not adding new tests, as application of the color profile is not
guaranteed for images used as textures in WebGL. Ran existing
WebGL layout tests; all pass.

  • platform/image-decoders/skia/ImageDecoderSkia.cpp:

(WebCore::ImageFrame::setStatus):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r105226 r105230  
     12012-01-17  Kenneth Russell  <kbr@google.com>
     2
     3        [chromium] Apply color profiles in more cases
     4        https://bugs.webkit.org/show_bug.cgi?id=76498
     5
     6        Reviewed by Stephen White.
     7
     8        Not adding new tests, as application of the color profile is not
     9        guaranteed for images used as textures in WebGL. Ran existing
     10        WebGL layout tests; all pass.
     11
     12        * platform/image-decoders/skia/ImageDecoderSkia.cpp:
     13        (WebCore::ImageFrame::setStatus):
     14
    1152012-01-17  Nate Chapin  <japhet@chromium.org>
    216
  • trunk/Source/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp

    r104732 r105230  
    161161        // resolveColorSpace() and callees assume that the alpha channel is
    162162        // premultiplied, so don't apply the color profile if it isn't.
    163         if (m_colorProfile.isEmpty() || !m_premultiplyAlpha)
     163        if (m_colorProfile.isEmpty() || (!m_premultiplyAlpha && hasAlpha()))
    164164            return;
    165165        RetainPtr<CGColorSpaceRef> cgColorSpace(AdoptCF, createColorSpace(m_colorProfile));
Note: See TracChangeset for help on using the changeset viewer.