Bug 115846 - Checking if frame is complete and access duration doesn't need a decode
Summary: Checking if frame is complete and access duration doesn't need a decode
Status: RESOLVED DUPLICATE of bug 116041
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-05-08 20:57 PDT by Ryosuke Niwa
Modified: 2013-10-30 09:16 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Ryosuke Niwa 2013-05-08 20:57:21 PDT
Consider merging the above change.

hecking if frame is complete and access duration doesn't need a decode

The goal of this change is to minimize image decoding on the main thread.

This change is to avoid image decoding for these two operations:
1. frameIsCompleteAtIndex
2. frameDurationAtIndex
These two operations are moved to ImageDecoder interface and are now const
to prevent future regression.

We are now able to check if a frame is complete by parsing the entire GIF file
without decoding. This also provides information like frame duration such that
controller the animation doesn't require any decoding.

This change is critical to moving animated image decoding off the main thread.
Comment 2 Csaba Osztrogonác 2013-10-30 09:16:52 PDT

*** This bug has been marked as a duplicate of bug 116041 ***