[chromium] WebImage should use ImageDecoder directly
authorhclam@chromium.org <hclam@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Sep 2012 22:29:54 +0000 (22:29 +0000)
committerhclam@chromium.org <hclam@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Sep 2012 22:29:54 +0000 (22:29 +0000)
commit0dbf37e06eb4371ce35cdea0d536b9dc193586c4
tree649026af4f583b56a9ed5f3bdfbc88162dddb832
parent7b6e2b458989bafe7735e74c25b6d71165805c80
[chromium] WebImage should use ImageDecoder directly
https://bugs.webkit.org/show_bug.cgi?id=96135

Reviewed by Adam Barth.

This patch is for preparation of deferred image decoding.
ImageSource will be used as a portal to access deferred image decoder
by BitmapImage, it should not be accessible through WebKit APIs.

WebImage now calls ImageDecoder directly which is the actual
implementation of an image decoder.

Tests: WebImageTest.PNGImage
       WebImageTest.ICOImage

* WebKit.gypi:
* src/WebImageSkia.cpp:
(WebKit::WebImage::fromData):
(WebKit::WebImage::framesFromData):
* tests/WebImageTest.cpp: Added.
(WebKit):
(WebKit::readFile):
(WebKit::TEST):
* tests/data/black-and-white.ico: Added.
* tests/data/white-1x1.png: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@128939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/WebKit.gypi
Source/WebKit/chromium/src/WebImageSkia.cpp
Source/WebKit/chromium/tests/WebImageTest.cpp [new file with mode: 0644]
Source/WebKit/chromium/tests/data/black-and-white.ico [new file with mode: 0644]
Source/WebKit/chromium/tests/data/white-1x1.png [new file with mode: 0644]