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

Issue 795113002: compositor/layer_animator: handle delegate removal in LayerAnimation::StopAnimating (Closed)

Created:
6 years ago by Lukasz Jagielski
Modified:
5 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

LayerAnimator should withdraw from processing animation queue when its delegate becomes nullptr. BUG= Committed: https://crrev.com/205709806da5c07eb640fe256d473f1a64f56e44 Cr-Commit-Position: refs/heads/master@{#310354}

Patch Set 1 #

Patch Set 2 : Added test #

Total comments: 5

Patch Set 3 : Removed bad test and implemented correct one. #

Total comments: 2

Patch Set 4 : Worked everything around. #

Total comments: 2

Patch Set 5 : Fixed test. #

Total comments: 5

Patch Set 6 : More fixups for test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -1 line) Patch
M ui/compositor/layer_animator.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ui/compositor/layer_animator_unittest.cc View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
M ui/wm/core/window_animations_unittest.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (2 generated)
Lukasz Jagielski
Hi, PTAL at my CL attempt. I have no bug for this, because I'm unable ...
6 years ago (2014-12-11 14:36:09 UTC) #2
sky
How about some test coverage?
6 years ago (2014-12-11 16:28:17 UTC) #3
sky
On 2014/12/11 16:28:17, sky wrote: > How about some test coverage? LayerAnimator has code you ...
6 years ago (2014-12-11 16:35:21 UTC) #4
Lukasz Jagielski
On 2014/12/11 16:35:21, sky wrote: > On 2014/12/11 16:28:17, sky wrote: > > How about ...
6 years ago (2014-12-12 16:18:43 UTC) #5
sky
https://codereview.chromium.org/795113002/diff/20001/ui/compositor/layer_animator_unittest.cc File ui/compositor/layer_animator_unittest.cc (right): https://codereview.chromium.org/795113002/diff/20001/ui/compositor/layer_animator_unittest.cc#newcode2616 ui/compositor/layer_animator_unittest.cc:2616: nit: no newline here. https://codereview.chromium.org/795113002/diff/20001/ui/compositor/layer_animator_unittest.cc#newcode2617 ui/compositor/layer_animator_unittest.cc:2617: CompletionOrderAnimationObserver() {}; no ...
6 years ago (2014-12-12 18:05:15 UTC) #6
Lukasz Jagielski
6 years ago (2014-12-15 14:28:34 UTC) #7
sky
https://codereview.chromium.org/795113002/diff/40001/ui/wm/core/window_animations.cc File ui/wm/core/window_animations.cc (right): https://codereview.chromium.org/795113002/diff/40001/ui/wm/core/window_animations.cc#newcode408 ui/wm/core/window_animations.cc:408: sequences_.push_back(sequence); I think you're working around the bug. OnLayerAnimationEnded ...
6 years ago (2014-12-15 17:48:54 UTC) #8
Lukasz Jagielski
On 2014/12/15 17:48:54, sky wrote: > https://codereview.chromium.org/795113002/diff/40001/ui/wm/core/window_animations.cc > File ui/wm/core/window_animations.cc (right): > Ok, but what ...
6 years ago (2014-12-16 20:40:17 UTC) #9
sky
Without a delegate there is no point in continuing. -Scott On Tue, Dec 16, 2014 ...
6 years ago (2014-12-16 23:28:09 UTC) #10
Lukasz Jagielski
Ok, I hope I got a bit closer to correct solution :) Regards, Łukasz On ...
6 years ago (2014-12-18 15:24:57 UTC) #11
Lukasz Jagielski
6 years ago (2014-12-18 15:25:31 UTC) #12
sky
https://codereview.chromium.org/795113002/diff/60001/ui/compositor/layer_animator_unittest.cc File ui/compositor/layer_animator_unittest.cc (right): https://codereview.chromium.org/795113002/diff/60001/ui/compositor/layer_animator_unittest.cc#newcode2622 ui/compositor/layer_animator_unittest.cc:2622: ~DelegateOwnerAnimationObserver() { animator_->SetDelegate(nullptr); } override https://codereview.chromium.org/795113002/diff/60001/ui/compositor/layer_animator_unittest.cc#newcode2653 ui/compositor/layer_animator_unittest.cc:2653: scoped_refptr<LayerAnimator> animator( ...
6 years ago (2014-12-18 20:31:40 UTC) #13
Lukasz Jagielski
I tweaked the test according to comments. Regards, Łukasz
6 years ago (2014-12-19 13:53:43 UTC) #14
sky
https://codereview.chromium.org/795113002/diff/80001/ui/compositor/layer_animator_unittest.cc File ui/compositor/layer_animator_unittest.cc (right): https://codereview.chromium.org/795113002/diff/80001/ui/compositor/layer_animator_unittest.cc#newcode2621 ui/compositor/layer_animator_unittest.cc:2621: virtual ~LayerOwnerAnimationObserver() {} no virtual, just override. https://codereview.chromium.org/795113002/diff/80001/ui/compositor/layer_animator_unittest.cc#newcode2633 ui/compositor/layer_animator_unittest.cc:2633: ...
5 years, 11 months ago (2015-01-05 17:54:52 UTC) #15
Lukasz Jagielski
5 years, 11 months ago (2015-01-07 16:12:51 UTC) #16
sky
LGTM
5 years, 11 months ago (2015-01-07 17:09:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795113002/100001
5 years, 11 months ago (2015-01-07 19:13:07 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-07 20:33:21 UTC) #20
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 20:35:10 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/205709806da5c07eb640fe256d473f1a64f56e44
Cr-Commit-Position: refs/heads/master@{#310354}

Powered by Google App Engine
This is Rietveld 408576698