Title: [105230] trunk/Source/WebCore
Revision
105230
Author
[email protected]
Date
2012-01-17 19:09:16 -0800 (Tue, 17 Jan 2012)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (105229 => 105230)


--- trunk/Source/WebCore/ChangeLog	2012-01-18 02:48:00 UTC (rev 105229)
+++ trunk/Source/WebCore/ChangeLog	2012-01-18 03:09:16 UTC (rev 105230)
@@ -1,3 +1,17 @@
+2012-01-17  Kenneth Russell  <[email protected]>
+
+        [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):
+
 2012-01-17  Nate Chapin  <[email protected]>
 
         Ensure we don't cancel revalidation of a CachedResource

Modified: trunk/Source/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp (105229 => 105230)


--- trunk/Source/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp	2012-01-18 02:48:00 UTC (rev 105229)
+++ trunk/Source/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp	2012-01-18 03:09:16 UTC (rev 105230)
@@ -160,7 +160,7 @@
 #if PLATFORM(CHROMIUM) && OS(DARWIN)
         // resolveColorSpace() and callees assume that the alpha channel is
         // premultiplied, so don't apply the color profile if it isn't.
-        if (m_colorProfile.isEmpty() || !m_premultiplyAlpha)
+        if (m_colorProfile.isEmpty() || (!m_premultiplyAlpha && hasAlpha()))
             return;
         RetainPtr<CGColorSpaceRef> cgColorSpace(AdoptCF, createColorSpace(m_colorProfile));
         resolveColorSpace(m_bitmap.bitmap(), cgColorSpace.get());
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to