Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Issue 1574283002: GIF Animations "clear from cache related glitch" fix (Closed)

Created:
4 years, 11 months ago by aleksandar.stojiljkovic
Modified:
4 years, 11 months ago
CC:
chromium-reviews, krit, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Justin Novosad, danakj, Rik, f(malita), blink-reviews, vmpstr+blinkwatch_chromium.org, kinuko+watch, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GIF Animations "clear from cache related glitch" fix Fix for two separate situations where dependent frames are removed from cache resulting with decoding frames from 0..N-1 when decoding frame N. User experience in this case often suffered from ~500ms glitches in animation rendering or skipped frames. Measurements are available in Issue 507273 comments. BUG=481250, 507273 Committed: https://crrev.com/0a79aa1c58370ca041c85aa5781a74dd5279d634 Cr-Commit-Position: refs/heads/master@{#369950}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Review comment #5 fix #

Patch Set 3 : @pkasting, great that you figured out this - yes, DisposeOverwritePrevious fixes this. #

Total comments: 10

Patch Set 4 : Handling #17 #

Patch Set 5 : Nit: blank line before the comment. #

Patch Set 6 : more correct way to write it. #

Total comments: 1

Patch Set 7 : Split graphics patch. using @pkasting's algorithm #

Total comments: 4

Patch Set 8 : nits. @pkasting thanks for comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -6 lines) Patch
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp View 1 2 3 4 5 6 7 1 chunk +39 lines, -6 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
aleksandar.stojiljkovic
4 years, 11 months ago (2016-01-12 15:53:01 UTC) #2
tomhudson
https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp (right): https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp#newcode199 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp:199: // Don't clear if there are no frames or ...
4 years, 11 months ago (2016-01-12 16:15:59 UTC) #5
aleksandar.stojiljkovic
https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp (right): https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp#newcode183 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp:183: // Don't clear if there are no frames or ...
4 years, 11 months ago (2016-01-12 17:35:00 UTC) #6
urvang
https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp (right): https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp#newcode229 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp:229: // on the previous or the frame before previous. ...
4 years, 11 months ago (2016-01-12 18:02:01 UTC) #7
aleksandar.stojiljkovic
https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp (right): https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp#newcode229 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp:229: // on the previous or the frame before previous. ...
4 years, 11 months ago (2016-01-12 18:19:14 UTC) #8
aleksandar.stojiljkovic
Patch Set 2 : Review comment #5 fix https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp (right): https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp#newcode242 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp:242: return ...
4 years, 11 months ago (2016-01-12 18:54:02 UTC) #9
aleksandar_stojiljkovic
On 2016/01/12 18:02:01, urvang wrote: > https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp > File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp > (right): > > https://codereview.chromium.org/1574283002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp#newcode229 ...
4 years, 11 months ago (2016-01-12 19:48:37 UTC) #10
Peter Kasting
I don't think this is the right way to do this. This basically makes the ...
4 years, 11 months ago (2016-01-12 20:31:44 UTC) #12
aleksandar_stojiljkovic
On 2016/01/12 20:31:44, Peter Kasting wrote: > I don't think this is the right way ...
4 years, 11 months ago (2016-01-12 20:56:38 UTC) #13
Peter Kasting
On 2016/01/12 20:56:38, aleksandar_stojiljkovic wrote: > On 2016/01/12 20:31:44, Peter Kasting wrote: > > I ...
4 years, 11 months ago (2016-01-12 21:37:54 UTC) #14
Peter Kasting
Also, if you fix this, I suspect that my complaint in bug 481250 may not ...
4 years, 11 months ago (2016-01-12 21:41:56 UTC) #15
aleksandar.stojiljkovic
On 2016/01/12 21:41:56, Peter Kasting wrote: > Also, if you fix this, I suspect that ...
4 years, 11 months ago (2016-01-13 17:17:36 UTC) #16
Peter Kasting
https://codereview.chromium.org/1574283002/diff/40001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/1574283002/diff/40001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp#newcode297 third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp:297: removeDecoder = m_frameCount && (decodedFrameCount == m_frameCount) && (index ...
4 years, 11 months ago (2016-01-14 00:17:29 UTC) #17
aleksandar.stojiljkovic
https://codereview.chromium.org/1574283002/diff/40001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/1574283002/diff/40001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp#newcode297 third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp:297: removeDecoder = m_frameCount && (decodedFrameCount == m_frameCount) && (index ...
4 years, 11 months ago (2016-01-14 11:32:53 UTC) #18
Peter Kasting
https://codereview.chromium.org/1574283002/diff/40001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/1574283002/diff/40001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp#newcode297 third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp:297: removeDecoder = m_frameCount && (decodedFrameCount == m_frameCount) && (index ...
4 years, 11 months ago (2016-01-14 22:58:39 UTC) #19
aleksandar.stojiljkovic
On 2016/01/14 22:58:39, Peter Kasting wrote: > https://codereview.chromium.org/1574283002/diff/40001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp > File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp > (right): > > ...
4 years, 11 months ago (2016-01-15 12:07:19 UTC) #20
Peter Kasting
LGTM https://codereview.chromium.org/1574283002/diff/120001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp (right): https://codereview.chromium.org/1574283002/diff/120001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp#newcode227 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp:227: // All other frames can be cleared. Nit: ...
4 years, 11 months ago (2016-01-15 21:57:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1574283002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1574283002/140001
4 years, 11 months ago (2016-01-16 07:09:26 UTC) #24
aleksandar.stojiljkovic
https://codereview.chromium.org/1574283002/diff/120001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp (right): https://codereview.chromium.org/1574283002/diff/120001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp#newcode227 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp:227: // All other frames can be cleared. On 2016/01/15 ...
4 years, 11 months ago (2016-01-16 07:09:35 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 11 months ago (2016-01-16 08:20:41 UTC) #27
commit-bot: I haz the power
4 years, 11 months ago (2016-01-16 08:21:47 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/0a79aa1c58370ca041c85aa5781a74dd5279d634
Cr-Commit-Position: refs/heads/master@{#369950}

Powered by Google App Engine
This is Rietveld 408576698