WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170591
[GTK] Animations not played properly when using synchronous decoding
https://bugs.webkit.org/show_bug.cgi?id=170591
Summary
[GTK] Animations not played properly when using synchronous decoding
Miguel Gomez
Reported
2017-04-07 02:17:36 PDT
For PNG and GIF images, async decoding is used if the file size is bigger than a threshold, otherwise sync decoding is used.
Bug 170333
, which happens because async decoding stopped being used, revealed that sync decoding is not working properly.
Attachments
Patch
(1.62 KB, patch)
2017-04-07 02:36 PDT
,
Miguel Gomez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Miguel Gomez
Comment 1
2017-04-07 02:27:43 PDT
There seems to be an error in ImageFrameCache::destroyDecodedData(). Theoretically this should destroy all the decoded frames except one we want to keep, but what it's actually doing is destroying all the odd ones (including the one we want to keep if it's odd).
Miguel Gomez
Comment 2
2017-04-07 02:36:44 PDT
Created
attachment 306481
[details]
Patch
Carlos Garcia Campos
Comment 3
2017-04-07 02:38:18 PDT
Comment on
attachment 306481
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=306481&action=review
> Source/WebCore/platform/graphics/ImageFrameCache.cpp:101 > - decodedSize += m_frames[index++].clearImage(); > + decodedSize += m_frames[index].clearImage();
oh! good catch!
WebKit Commit Bot
Comment 4
2017-04-07 05:52:30 PDT
Comment on
attachment 306481
[details]
Patch Clearing flags on attachment: 306481 Committed
r215091
: <
http://trac.webkit.org/changeset/215091
>
WebKit Commit Bot
Comment 5
2017-04-07 05:52:31 PDT
All reviewed patches have been landed. Closing bug.
Said Abou-Hallawa
Comment 6
2017-04-13 17:32:24 PDT
<
rdar://problem/31617277
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug