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

Issue 2004263003: Delay resetting image animation, if possible. (Closed)

Created:
4 years, 7 months ago by sof
Modified:
4 years, 6 months ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delay resetting image animation, if possible. When the last client of an ImageResource removes itself, the animations of the image is explicitly reset. That resetting can happen either while finalizing objects after a GC or as part of other explicit removals of ImageObserver clients. Having that reset happen as part of a garbage collection is interacting badly with code in the middle of updating animations (which happen to trigger a conservative GC.) So, to avoid introducing such abrupt & harmful resets, delay the reset'ing until back at the event loop (and the animations update step having completed.) R= BUG=613709, 581546 Committed: https://crrev.com/a9a17309a49caff18a2cffd43867d99aa20cf42e Cr-Commit-Position: refs/heads/master@{#400934}

Patch Set 1 #

Patch Set 2 : expand the comment #

Total comments: 2

Patch Set 3 : firm up willObjectBeLazilySwept() #

Patch Set 4 : comment typo #

Patch Set 5 : rebased #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 5 1 chunk +15 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (8 generated)
sof
please take a look. See https://codereview.chromium.org/2005693002/ for an alternate approach considered.
4 years, 7 months ago (2016-05-24 14:07:31 UTC) #3
fs
On 2016/05/24 at 14:07:31, sigbjornf wrote: > please take a look. > > See https://codereview.chromium.org/2005693002/ ...
4 years, 7 months ago (2016-05-24 14:16:00 UTC) #4
sof
On 2016/05/24 14:16:00, fs wrote: > On 2016/05/24 at 14:07:31, sigbjornf wrote: > > please ...
4 years, 7 months ago (2016-05-24 14:26:05 UTC) #5
haraken
https://codereview.chromium.org/2004263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2004263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode221 third_party/WebKit/Source/core/fetch/ImageResource.cpp:221: if (!ThreadHeap::willObjectBeLazilySwept(this)) Hmm, I'm not really happy about using ...
4 years, 7 months ago (2016-05-24 15:40:54 UTC) #7
sof
https://codereview.chromium.org/2004263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2004263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode221 third_party/WebKit/Source/core/fetch/ImageResource.cpp:221: if (!ThreadHeap::willObjectBeLazilySwept(this)) On 2016/05/24 15:40:54, haraken wrote: > > ...
4 years, 7 months ago (2016-05-24 15:47:20 UTC) #8
haraken
On 2016/05/24 15:47:20, sof wrote: > https://codereview.chromium.org/2004263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp > File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): > > https://codereview.chromium.org/2004263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode221 > ...
4 years, 7 months ago (2016-05-24 15:53:57 UTC) #9
sof
On 2016/05/24 15:53:57, haraken wrote: > On 2016/05/24 15:47:20, sof wrote: > > > https://codereview.chromium.org/2004263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp ...
4 years, 7 months ago (2016-05-24 18:00:20 UTC) #10
sof
On 2016/05/24 18:00:20, sof wrote: > On 2016/05/24 15:53:57, haraken wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-24 18:01:21 UTC) #11
haraken
On 2016/05/24 18:00:20, sof wrote: > On 2016/05/24 15:53:57, haraken wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-24 19:57:47 UTC) #12
sof
On 2016/05/24 19:57:47, haraken wrote: > On 2016/05/24 18:00:20, sof wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-24 20:57:59 UTC) #13
sof
On 2016/05/24 20:57:59, sof wrote: > On 2016/05/24 19:57:47, haraken wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-24 21:34:42 UTC) #14
haraken
On 2016/05/24 21:34:42, sof wrote: > On 2016/05/24 20:57:59, sof wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-24 22:37:50 UTC) #15
sof
On 2016/05/24 22:37:50, haraken wrote: > On 2016/05/24 21:34:42, sof wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-25 15:18:40 UTC) #16
haraken
> We need to fix willObjectBeLazilySwept() to also handle this rare lazy sweeping > case; ...
4 years, 7 months ago (2016-05-26 04:20:27 UTC) #17
sof
On 2016/05/26 04:20:27, haraken wrote: > > We need to fix willObjectBeLazilySwept() to also handle ...
4 years, 7 months ago (2016-05-26 05:19:23 UTC) #18
haraken
On 2016/05/26 05:19:23, sof wrote: > On 2016/05/26 04:20:27, haraken wrote: > > > We ...
4 years, 7 months ago (2016-05-26 08:16:18 UTC) #19
sof
On 2016/05/26 08:16:18, haraken wrote: > On 2016/05/26 05:19:23, sof wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 08:20:57 UTC) #20
haraken
On 2016/05/26 08:20:57, sof wrote: > On 2016/05/26 08:16:18, haraken wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 08:43:33 UTC) #21
sof
On 2016/05/26 08:43:33, haraken wrote: > On 2016/05/26 08:20:57, sof wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 08:50:45 UTC) #22
haraken
On 2016/05/26 08:50:45, sof wrote: > On 2016/05/26 08:43:33, haraken wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 08:52:56 UTC) #23
sof
On 2016/05/26 08:50:45, sof wrote: > On 2016/05/26 08:43:33, haraken wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 08:58:02 UTC) #24
sof
On 2016/05/26 08:52:56, haraken wrote: > On 2016/05/26 08:50:45, sof wrote: ... > > > ...
4 years, 7 months ago (2016-05-26 09:01:13 UTC) #25
haraken
On 2016/05/26 08:58:02, sof wrote: > On 2016/05/26 08:50:45, sof wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 09:03:11 UTC) #26
sof
On 2016/05/26 09:03:11, haraken wrote: > On 2016/05/26 08:58:02, sof wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 09:09:00 UTC) #27
haraken
On 2016/05/26 09:09:00, sof wrote: > On 2016/05/26 09:03:11, haraken wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 16:03:47 UTC) #28
sof
On 2016/05/26 16:03:47, haraken wrote: > On 2016/05/26 09:09:00, sof wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 17:44:40 UTC) #29
haraken
On 2016/05/26 17:44:40, sof wrote: > On 2016/05/26 16:03:47, haraken wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-26 22:58:08 UTC) #30
sof
On 2016/05/26 22:58:08, haraken wrote: > On 2016/05/26 17:44:40, sof wrote: > > On 2016/05/26 ...
4 years, 7 months ago (2016-05-27 05:16:59 UTC) #31
sof
Rebased up past r396798.
4 years, 6 months ago (2016-06-03 06:39:17 UTC) #32
davve
On 2016/06/03 06:39:17, sof wrote: > Rebased up past r396798. So... Any chance for progress ...
4 years, 6 months ago (2016-06-20 06:42:09 UTC) #33
sof
On 2016/06/20 06:42:09, David Vest wrote: > On 2016/06/03 06:39:17, sof wrote: > > Rebased ...
4 years, 6 months ago (2016-06-20 09:02:01 UTC) #34
haraken
LGTM. I don't think this is a right fix, but it's better to land this ...
4 years, 6 months ago (2016-06-21 06:45:53 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2004263003/100001
4 years, 6 months ago (2016-06-21 09:36:57 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-21 09:41:24 UTC) #41
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 09:43:35 UTC) #43
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a9a17309a49caff18a2cffd43867d99aa20cf42e
Cr-Commit-Position: refs/heads/master@{#400934}

Powered by Google App Engine
This is Rietveld 408576698