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

Issue 1147323003: Made the CompositorAnimationObserver class usable (Closed)

Created:
5 years, 6 months ago by Lof
Modified:
5 years, 6 months ago
Reviewers:
danakj, xiyuan, ajuma, sadrul
CC:
chromium-reviews, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Made the CompositorAnimationObserver class usable If you use CompositorAnimationObserver, you must check compositor's shutdown. Otherwise there is a crash when you unsubscribe because of compositor's delete. There is workaround: to inheritance from CompositorObserver and listen for OnCompositingShuttingDown. But this is not graceful solution. So I added OnCompositingShuttingDown to CompositorAnimationObserver. I fixed potentional crash and wrote a test. R=ajuma, danakj Committed: https://crrev.com/adf2ce86bc9c62d6a192fdfb1e8af246ec01c32d Cr-Commit-Position: refs/heads/master@{#332480}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixes #

Patch Set 3 : Fixes #

Total comments: 1

Patch Set 4 : nit #

Total comments: 3

Patch Set 5 : remove if #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -5 lines) Patch
M chrome/browser/chromeos/ui/accessibility_focus_ring_controller.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc View 1 2 3 4 4 chunks +10 lines, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/compositor/compositor_animation_observer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/compositor/layer_animator_collection.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/layer_animator_collection.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 3 chunks +59 lines, -1 line 0 comments Download

Messages

Total messages: 19 (4 generated)
Lof
5 years, 6 months ago (2015-05-29 17:05:48 UTC) #1
ajuma
+sadrul who wrote CompositorAnimationObserver Is there more context for this change? If this is a ...
5 years, 6 months ago (2015-05-29 17:42:23 UTC) #3
Lof
On 2015/05/29 17:42:23, ajuma wrote: > +sadrul who wrote CompositorAnimationObserver > > Is there more ...
5 years, 6 months ago (2015-05-29 20:10:19 UTC) #4
ajuma
On 2015/05/29 20:10:19, Lof wrote: > On 2015/05/29 17:42:23, ajuma wrote: > > +sadrul who ...
5 years, 6 months ago (2015-05-29 21:57:10 UTC) #5
Lof
On 2015/05/29 21:57:10, ajuma wrote: > ... All is fixed.
5 years, 6 months ago (2015-05-30 22:36:19 UTC) #6
ajuma
On 2015/05/30 22:36:19, Lof wrote: > On 2015/05/29 21:57:10, ajuma wrote: > > ... > ...
5 years, 6 months ago (2015-06-01 13:25:37 UTC) #7
Lof
xiyuan@chromium.org: Please review changes in
5 years, 6 months ago (2015-06-01 13:48:03 UTC) #9
xiyuan
accessibility_focus_ring_controller.* LGTM https://codereview.chromium.org/1147323003/diff/40001/chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc File chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc (right): https://codereview.chromium.org/1147323003/diff/40001/chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc#newcode326 chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc:326: ui::Compositor* compositor) { nit: DCHECK_EQ(compositor_, compositor);
5 years, 6 months ago (2015-06-01 18:06:35 UTC) #10
Lof
On 2015/06/01 18:06:35, xiyuan wrote: > nit: DCHECK_EQ(compositor_, compositor); Fixed. Dana?
5 years, 6 months ago (2015-06-02 08:00:32 UTC) #11
danakj
https://codereview.chromium.org/1147323003/diff/60001/chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc File chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc (right): https://codereview.chromium.org/1147323003/diff/60001/chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc#newcode328 chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc:328: if (compositor_) { this cant be null can it? ...
5 years, 6 months ago (2015-06-02 18:24:16 UTC) #12
Lof
You are right. Fixed.
5 years, 6 months ago (2015-06-02 19:44:50 UTC) #13
danakj
LGTM
5 years, 6 months ago (2015-06-02 19:52:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1147323003/80001
5 years, 6 months ago (2015-06-02 20:36:58 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-02 22:23:43 UTC) #18
commit-bot: I haz the power
5 years, 6 months ago (2015-06-02 22:24:42 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/adf2ce86bc9c62d6a192fdfb1e8af246ec01c32d
Cr-Commit-Position: refs/heads/master@{#332480}

Powered by Google App Engine
This is Rietveld 408576698