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

Issue 9222018: reland -- Disable animations during aura tests. (Closed)

Created:
8 years, 11 months ago by Ian Vollick
Modified:
8 years, 10 months ago
CC:
chromium-reviews, sadrul, jonathan.backer, dhollowa+watch_chromium.org, ben+watch_chromium.org, dcheng, piman+watch_chromium.org
Visibility:
Public.

Description

Disable animations during aura tests. This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120074 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120092 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120147

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Fix aura_unittests #

Total comments: 11

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : Address reviewer comments. #

Total comments: 3

Patch Set 7 : Address reviewer comments #

Total comments: 4

Patch Set 8 : Address reviewer comments. #

Patch Set 9 : Get rid of AsImplicitObserver #

Patch Set 10 : . #

Patch Set 11 : Gardening #

Total comments: 2

Patch Set 12 : Address reviewer comments. #

Patch Set 13 : . #

Patch Set 14 : . #

Total comments: 3

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -257 lines) Patch
M ash/app_list/app_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -8 lines 0 comments Download
M ash/app_list/app_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +8 lines, -12 lines 0 comments Download
M ash/drag_drop/drag_drop_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -9 lines 0 comments Download
M ash/drag_drop/drag_drop_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +8 lines, -14 lines 0 comments Download
M ash/test/aura_shell_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +5 lines, -1 line 0 comments Download
M ash/wm/compact_layout_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -8 lines 0 comments Download
M ash/wm/compact_layout_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -10 lines 0 comments Download
M ash/wm/shelf_layout_manager.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -17 lines 0 comments Download
M ash/wm/shelf_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +26 lines, -30 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -8 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +11 lines, -13 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/visibility_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M ash/wm/window_animations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -3 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -3 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -1 line 0 comments Download
M ui/gfx/compositor/layer_animation_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +39 lines, -19 lines 0 comments Download
M ui/gfx/compositor/layer_animation_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +42 lines, -11 lines 0 comments Download
M ui/gfx/compositor/layer_animator.h View 1 2 3 4 3 chunks +16 lines, -6 lines 0 comments Download
M ui/gfx/compositor/layer_animator.cc View 1 2 3 4 5 4 chunks +15 lines, -3 lines 0 comments Download
M ui/gfx/compositor/layer_animator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 16 chunks +79 lines, -54 lines 0 comments Download
M ui/gfx/compositor/scoped_layer_animation_settings.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -4 lines 0 comments Download
M ui/gfx/compositor/scoped_layer_animation_settings.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -13 lines 0 comments Download
M ui/gfx/compositor/test/test_layer_animation_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gfx/compositor/test/test_layer_animation_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
sky
http://codereview.chromium.org/9222018/diff/5011/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): http://codereview.chromium.org/9222018/diff/5011/ash/drag_drop/drag_drop_controller.cc#newcode36 ash/drag_drop/drag_drop_controller.cc:36: {} {} on previous line. http://codereview.chromium.org/9222018/diff/5011/ash/drag_drop/drag_drop_controller.cc#newcode37 ash/drag_drop/drag_drop_controller.cc:37: ~DragDropAnimationObserver() {} ...
8 years, 11 months ago (2012-01-24 16:53:15 UTC) #1
Ian Vollick
On 2012/01/24 16:53:15, sky wrote: > http://codereview.chromium.org/9222018/diff/5011/ash/drag_drop/drag_drop_controller.cc > File ash/drag_drop/drag_drop_controller.cc (right): > > http://codereview.chromium.org/9222018/diff/5011/ash/drag_drop/drag_drop_controller.cc#newcode36 > ...
8 years, 11 months ago (2012-01-24 20:05:18 UTC) #2
sky
We're a bit lose on only pure virtual inheritance for cases like this (WidgetDelegate comes ...
8 years, 11 months ago (2012-01-24 20:53:06 UTC) #3
Ian Vollick
On 2012/01/24 20:53:06, sky wrote: > We're a bit lose on only pure virtual inheritance ...
8 years, 11 months ago (2012-01-26 21:33:41 UTC) #4
sky
http://codereview.chromium.org/9222018/diff/16002/ash/app_list/app_list.cc File ash/app_list/app_list.cc (right): http://codereview.chromium.org/9222018/diff/16002/ash/app_list/app_list.cc#newcode125 ash/app_list/app_list.cc:125: if (!window) I don't like these null checks. If ...
8 years, 11 months ago (2012-01-26 22:11:19 UTC) #5
Ian Vollick
On 2012/01/26 22:11:19, sky wrote: > http://codereview.chromium.org/9222018/diff/16002/ash/app_list/app_list.cc > File ash/app_list/app_list.cc (right): > > http://codereview.chromium.org/9222018/diff/16002/ash/app_list/app_list.cc#newcode125 > ...
8 years, 10 months ago (2012-01-27 16:54:26 UTC) #6
sky
https://chromiumcodereview.appspot.com/9222018/diff/24021/ash/drag_drop/drag_drop_animation_observer_client.h File ash/drag_drop/drag_drop_animation_observer_client.h (right): https://chromiumcodereview.appspot.com/9222018/diff/24021/ash/drag_drop/drag_drop_animation_observer_client.h#newcode18 ash/drag_drop/drag_drop_animation_observer_client.h:18: class ASH_EXPORT DragDropAnimationObserverClient { I think I sent you ...
8 years, 10 months ago (2012-01-27 17:54:10 UTC) #7
Ian Vollick
On 2012/01/27 17:54:10, sky wrote: > https://chromiumcodereview.appspot.com/9222018/diff/24021/ash/drag_drop/drag_drop_animation_observer_client.h > File ash/drag_drop/drag_drop_animation_observer_client.h (right): > > https://chromiumcodereview.appspot.com/9222018/diff/24021/ash/drag_drop/drag_drop_animation_observer_client.h#newcode18 > ...
8 years, 10 months ago (2012-01-27 20:28:39 UTC) #8
sky
http://codereview.chromium.org/9222018/diff/23005/ash/drag_drop/drag_drop_controller.h File ash/drag_drop/drag_drop_controller.h (right): http://codereview.chromium.org/9222018/diff/23005/ash/drag_drop/drag_drop_controller.h#newcode74 ash/drag_drop/drag_drop_controller.h:74: // Overridden from DragDropAnimationObserverClient: This is no longer an ...
8 years, 10 months ago (2012-01-27 20:54:19 UTC) #9
Ian Vollick
Most noteworthy change, the drag drop controller and shelf layout manager now inherit from ImplicitAnimationObserver. ...
8 years, 10 months ago (2012-01-30 14:51:37 UTC) #10
sky
https://chromiumcodereview.appspot.com/9222018/diff/42002/ui/gfx/compositor/layer_animation_observer.h File ui/gfx/compositor/layer_animation_observer.h (right): https://chromiumcodereview.appspot.com/9222018/diff/42002/ui/gfx/compositor/layer_animation_observer.h#newcode49 ui/gfx/compositor/layer_animation_observer.h:49: virtual void OnAttachedToSequence(LayerAnimationSequence* sequence); Where is this invoked from? ...
8 years, 10 months ago (2012-01-30 15:58:55 UTC) #11
Ian Vollick
On 2012/01/30 15:58:55, sky wrote: > https://chromiumcodereview.appspot.com/9222018/diff/42002/ui/gfx/compositor/layer_animation_observer.h > File ui/gfx/compositor/layer_animation_observer.h (right): > > https://chromiumcodereview.appspot.com/9222018/diff/42002/ui/gfx/compositor/layer_animation_observer.h#newcode49 > ...
8 years, 10 months ago (2012-01-30 17:46:53 UTC) #12
sky
On Mon, Jan 30, 2012 at 9:46 AM, <vollick@chromium.org> wrote: > On 2012/01/30 15:58:55, sky ...
8 years, 10 months ago (2012-01-30 18:20:28 UTC) #13
Ian Vollick
> >> ui/gfx/compositor/layer_animation_observer.h:101: std::set<const > >> LayerAnimationSequence*> unfinished_animations_; > >> Is this the same as ...
8 years, 10 months ago (2012-01-30 20:25:28 UTC) #14
sky
https://chromiumcodereview.appspot.com/9222018/diff/42005/ui/gfx/compositor/layer_animation_observer.h File ui/gfx/compositor/layer_animation_observer.h (right): https://chromiumcodereview.appspot.com/9222018/diff/42005/ui/gfx/compositor/layer_animation_observer.h#newcode56 ui/gfx/compositor/layer_animation_observer.h:56: void DetachFromAllSequences(); Add a description of this. Maybe it ...
8 years, 10 months ago (2012-01-30 22:20:19 UTC) #15
Ian Vollick
On 2012/01/30 22:20:19, sky wrote: > https://chromiumcodereview.appspot.com/9222018/diff/42005/ui/gfx/compositor/layer_animation_observer.h > File ui/gfx/compositor/layer_animation_observer.h (right): > > https://chromiumcodereview.appspot.com/9222018/diff/42005/ui/gfx/compositor/layer_animation_observer.h#newcode56 > ...
8 years, 10 months ago (2012-01-31 13:58:19 UTC) #16
sky
LGTM
8 years, 10 months ago (2012-01-31 16:54:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/9222018/45001
8 years, 10 months ago (2012-02-01 14:20:57 UTC) #18
commit-bot: I haz the power
8 years, 10 months ago (2012-02-01 16:45:45 UTC) #19
Try job failure for 9222018-45001 (retry) on win_rel for step "unit_tests".
It's a second try, previously, steps "unit_tests, browser_tests, ui_tests"
failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698