[Webkit-unassigned] [Bug 182277] New: BitmapImage::drawPattern() may not draw a complete frame even after all the data is received

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 29 20:46:00 PST 2018


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

            Bug ID: 182277
           Summary: BitmapImage::drawPattern() may not draw a complete
                    frame even after all the data is received
           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

This may happen if the same image is not drawn synchronously through BitmapImage::draw(). The member BitmapImage::m_currentFrameDecodingStatus was added to control when a decoded frame can be destroyed. For asynchronous image decoding, we may want to keep the incomplete decoded frame till the more complete frame finishes decoding so we have something to paint. For synchronous image drawing, we know we have to destroy the incomplete decoded frame because we are going to generate a new one.

The BitmapImage::drawPattern() asks for a decoded frame if it is not cached and then draws it by calling GraphicsContext::drawPattern(). We need to destroy the incomplete decoded frames before trying to draw it as a pattern.

-- 
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/20180130/f0855bd5/attachment.html>


More information about the webkit-unassigned mailing list