UNCONFIRMED 93464
Rename two methods of BitmapImage in order to clarify the intention: frameDurationAtIndex() and frameIsCompleteAtIndex().
https://bugs.webkit.org/show_bug.cgi?id=93464
Summary Rename two methods of BitmapImage in order to clarify the intention: frameDur...
Dongseong Hwang
Reported 2012-08-08 04:58:25 PDT
There are three methods which can trigger image decoding: ImageSource::createFrameAtIndex() ImageSource::frameIsCompleteAtIndex() ImageSource::frameDurationAtIndex() frameIsCompleteAtIndex() and frameDurationAtIndex() make us confused because both methods can trigger image decoding although the name of both methods do not look so. This patch renames frameDurationAtIndex() and frameIsCompleteAtIndex() to frameDurationAtIndexDecodingIfNecessary() and frameIsCompleteAtIndexDecodingIfNecessary() respectively. BitmapImage has the wrappers of both methods, so this patch renames those wrappers too. It is a preparation patch for implementing an async image decoder. Both methods are not plane getters, so developers need to be careful when using these methods. Otherwise, sync or async image decoding will be triggered, which is an unexpected behavior.
Attachments
Patch (12.20 KB, patch)
2012-08-08 05:00 PDT, Dongseong Hwang
no flags
Patch (7.17 KB, patch)
2012-08-09 00:10 PDT, Dongseong Hwang
no flags
Patch (6.07 KB, patch)
2012-08-09 00:44 PDT, Dongseong Hwang
no flags
Patch (6.18 KB, patch)
2012-08-15 23:24 PDT, Dongseong Hwang
no flags
Dongseong Hwang
Comment 1 2012-08-08 05:00:59 PDT
Gyuyoung Kim
Comment 2 2012-08-08 05:15:22 PDT
WebKit Review Bot
Comment 3 2012-08-08 05:23:54 PDT
Comment on attachment 157184 [details] Patch Attachment 157184 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13462063
Early Warning System Bot
Comment 4 2012-08-08 05:30:33 PDT
Early Warning System Bot
Comment 5 2012-08-08 05:43:46 PDT
Gustavo Noronha (kov)
Comment 6 2012-08-08 06:10:38 PDT
Dongseong Hwang
Comment 7 2012-08-08 19:17:19 PDT
This patch was implemented based on Bug 93171, so all build bots failed. I'll post this patch again after landing Bug 93171.
Dongseong Hwang
Comment 8 2012-08-09 00:10:43 PDT
Dongseong Hwang
Comment 9 2012-08-09 00:26:17 PDT
(In reply to comment #8) > Created an attachment (id=157403) [details] > Patch The first patch renamed two methods of ImageSource as well as two methods of BitmapImage. But this patch renamed only those of BitmapImage, because Bug 93467 prevents clients, except for BitmapImage, from using two methods of ImageSource.
Build Bot
Comment 10 2012-08-09 00:32:48 PDT
Build Bot
Comment 11 2012-08-09 00:35:08 PDT
Dongseong Hwang
Comment 12 2012-08-09 00:44:57 PDT
Dongseong Hwang
Comment 13 2012-08-15 23:24:46 PDT
Dongseong Hwang
Comment 14 2012-08-15 23:26:21 PDT
(In reply to comment #13) > Created an attachment (id=158718) [details] > Patch Rebased to the upstream
Andreas Kling
Comment 15 2014-02-05 10:51:25 PST
Comment on attachment 158718 [details] Patch Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
Note You need to log in before you can comment on or make changes to this bug.