Passing alpha to DeferredImageDecoder once decoding completes
[WebKit-https.git] / Source / WebCore / ChangeLog
index e9db4851b8a108b1585ccf2438addef3b0644edc..3e8bcbf926ef5365452b56f773105b55a7e10809 100644 (file)
@@ -1,3 +1,31 @@
+2013-02-14  Min Qin  <qinmin@chromium.org>
+
+        Passing alpha to DeferredImageDecoder once decoding completes
+        https://bugs.webkit.org/show_bug.cgi?id=108892
+
+        Reviewed by Stephen White.
+
+        We should pass hasAlpha value back to the DeferredImageDecoder once decoding is completed
+        Added unit tests in ImageFrameGeneratorTest.
+
+        * platform/graphics/chromium/DeferredImageDecoder.cpp:
+        (WebCore::DeferredImageDecoder::frameHasAlphaAtIndex):
+        * platform/graphics/chromium/ImageFrameGenerator.cpp:
+        (WebCore::ImageFrameGenerator::tryToScale):
+        (WebCore::ImageFrameGenerator::decode):
+        * platform/graphics/chromium/LazyDecodingPixelRef.cpp:
+        (WebCore::LazyDecodingPixelRef::LazyDecodingPixelRef):
+        (WebCore::LazyDecodingPixelRef::onUnlockPixels):
+        * platform/graphics/chromium/LazyDecodingPixelRef.h:
+        (WebCore::LazyDecodingPixelRef::hasAlpha):
+        (LazyDecodingPixelRef):
+        * platform/graphics/chromium/ScaledImageFragment.cpp:
+        (WebCore::ScaledImageFragment::ScaledImageFragment):
+        * platform/graphics/chromium/ScaledImageFragment.h:
+        (WebCore::ScaledImageFragment::create):
+        (ScaledImageFragment):
+        (WebCore::ScaledImageFragment::hasAlpha):
+
 2013-02-14  David Grogan  <dgrogan@chromium.org>
 
         IndexedDB: Add a few more histogram calls