Bug 115846
Summary: | Checking if frame is complete and access duration doesn't need a decode | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | Images | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | barraclough, benjamin, kling, koivisto, mjs, ossy |
Priority: | P2 | Keywords: | BlinkMergeCandidate |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ryosuke Niwa
https://chromium.googlesource.com/chromium/blink/+/899a7a4375e3d124a3e740aa368ef733f3ebfa3e
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
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.
Csaba Osztrogonác
*** This bug has been marked as a duplicate of bug 116041 ***