[Webkit-unassigned] [Bug 172122] New: Make ImageDecoder be a member of ImageFrameCache only

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 15 09:31:01 PDT 2017


            Bug ID: 172122
           Summary: Make ImageDecoder be a member of ImageFrameCache only
           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

All the native image decoders, which are used by WebKit, are not thread safe. Many crashes have been reported because of read/write or write/write scenarios which are invoked concurrently from the main thread and the decoding thread. To fix these crashes, we have to enforce that an ImageDecoder be accessed by a single thread at any time. 

To make locking ImageDecoder easier to implement and recognize, we need first to make ImageDecoder belongs to a single class only. Currently ImageDecoder is created by ImagSource and a copy of it is passed to ImageFrameCache. Most of the calls to the ImageDeooder methods are made from ImageFrameCache. Only a few calls are made from ImageSource. It make sense to move the ownership of the ImageDecoder to ImageFrameCache.

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

More information about the webkit-unassigned mailing list