<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add the asynchronous image decoding mode"
   href="https://bugs.webkit.org/show_bug.cgi?id=155546">155546</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add the asynchronous image decoding mode
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Images
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sabouhallawa&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>