[Webkit-unassigned] [Bug 155546] New: Add the asynchronous image decoding mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 16 10:13:39 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=155546

            Bug ID: 155546
           Summary: Add the asynchronous image decoding mode
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

In case of large images, the image decoding will start immediately after having the size of the image. A new class named ImageFrameDecoder which inherits form ImageDecoder will be added to manage the fork. In ImageFrameDecoder:: setData() and after knowing the size of the image is available, a heretic will be checked to decide whether to an asynchronous image decoding is needed or not.  If it is needed, a separate thread will be created to do the decoding such that the main thread is not blocked. In the main thread side, ImageSource::frameAtIndex() will check whether the ImageDecoder is in asynchronous decoding mode or not. If it is, no caching will be carried out on the main thread. ImageSource::frameAtIndex(), will return whatever is stored in the ImageFraeDataBuffer[index] regardless whether it is complete or not.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160316/d311fb7d/attachment-0001.html>


More information about the webkit-unassigned mailing list