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

Issue 105673008: Remove unneeded ScopedLayerAnimationSettings::LockTransitionDuration() (Closed)

Created:
7 years ago by pkotwicz
Modified:
6 years, 11 months ago
Reviewers:
Ian Vollick, varkha, oshima
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, tfarina, ben+corewm_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, flackr
Visibility:
Public.

Description

This CL - Introduces views::corewm::SetWindowShowAnimationDuration() and views::corewm::SetWindowHideAnimationDuration(). This allows the animation duration for showing and hiding the window to be different. - Fixes a memory leak in AddLayerAnimationsForRotate() - Fixes calls to views::corewm::SetWindowVisibilityAnimationType() and views::corewm::SetWindowVisibilityAnimationDuration(). In particular, the animation type and animation duration were not properly reset. So docking a window would permanently affect the duration of the show and hide animations. - Removes unneeded ScopedLayerAnimationSettings::LockTransitionDuration(). This API is not currently necessary so it is best for it to not exist at this point in time. BUG=323791 TEST=None R=varkha, oshima TBR=vollick Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245031

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -200 lines) Patch
M ash/system/tray/tray_background_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/dock/docked_window_layout_manager.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 5 chunks +20 lines, -22 lines 0 comments Download
M ash/wm/window_animations.cc View 1 2 3 4 5 chunks +15 lines, -11 lines 0 comments Download
M ash/wm/window_animations_unittest.cc View 1 2 3 4 5 2 chunks +0 lines, -103 lines 0 comments Download
M chrome/browser/chromeos/login/login_display_host_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer_animator.h View 1 2 3 4 3 chunks +5 lines, -9 lines 0 comments Download
M ui/compositor/layer_animator.cc View 1 2 3 4 3 chunks +2 lines, -9 lines 0 comments Download
M ui/compositor/scoped_layer_animation_settings.h View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M ui/compositor/scoped_layer_animation_settings.cc View 1 2 3 4 3 chunks +3 lines, -11 lines 0 comments Download
M ui/views/corewm/window_animations.h View 1 chunk +19 lines, -1 line 0 comments Download
M ui/views/corewm/window_animations.cc View 1 2 3 4 7 chunks +52 lines, -23 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
pkotwicz
Valery, can you please take a look? Once you are happy, I will remove ScopedLayerAnimationSettings:: ...
7 years ago (2013-12-23 01:12:06 UTC) #1
varkha
Just a question. So this CL is not changing any visible transition duration or type, ...
6 years, 11 months ago (2014-01-02 20:24:25 UTC) #2
pkotwicz
This CL should not result in any visible changes
6 years, 11 months ago (2014-01-02 20:29:53 UTC) #3
pkotwicz
https://codereview.chromium.org/105673008/diff/80001/ui/views/corewm/window_animations.cc File ui/views/corewm/window_animations.cc (right): https://codereview.chromium.org/105673008/diff/80001/ui/views/corewm/window_animations.cc#newcode387 ui/views/corewm/window_animations.cc:387: if (!show) { We were never setting the HidingWindowAnimationObserver ...
6 years, 11 months ago (2014-01-02 20:30:00 UTC) #4
varkha
https://codereview.chromium.org/105673008/diff/80001/ui/views/corewm/window_animations.cc File ui/views/corewm/window_animations.cc (right): https://codereview.chromium.org/105673008/diff/80001/ui/views/corewm/window_animations.cc#newcode387 ui/views/corewm/window_animations.cc:387: if (!show) { On 2014/01/02 20:30:00, pkotwicz wrote: > ...
6 years, 11 months ago (2014-01-02 21:35:27 UTC) #5
pkotwicz
Valery, can you please take another look?
6 years, 11 months ago (2014-01-02 21:51:51 UTC) #6
varkha
https://codereview.chromium.org/105673008/diff/350001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/105673008/diff/350001/ash/wm/dock/docked_window_layout_manager.cc#newcode470 ash/wm/dock/docked_window_layout_manager.cc:470: base::TimeDelta()); nit: Could this be called once after if-else? ...
6 years, 11 months ago (2014-01-02 22:26:41 UTC) #7
pkotwicz
https://codereview.chromium.org/105673008/diff/350001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/105673008/diff/350001/ash/wm/dock/docked_window_layout_manager.cc#newcode470 ash/wm/dock/docked_window_layout_manager.cc:470: base::TimeDelta()); Given that the two durations are different, I ...
6 years, 11 months ago (2014-01-02 22:45:51 UTC) #8
varkha
https://codereview.chromium.org/105673008/diff/350001/ash/wm/window_animations.cc File ash/wm/window_animations.cc (right): https://codereview.chromium.org/105673008/diff/350001/ash/wm/window_animations.cc#newcode141 ash/wm/window_animations.cc:141: base::TimeDelta::FromMilliseconds(kLayerAnimationsForMinimizeDurationMS)); On 2014/01/02 22:45:51, pkotwicz wrote: > The default ...
6 years, 11 months ago (2014-01-03 03:47:48 UTC) #9
pkotwicz
https://codereview.chromium.org/105673008/diff/350001/ash/wm/window_animations.cc File ash/wm/window_animations.cc (right): https://codereview.chromium.org/105673008/diff/350001/ash/wm/window_animations.cc#newcode141 ash/wm/window_animations.cc:141: base::TimeDelta::FromMilliseconds(kLayerAnimationsForMinimizeDurationMS)); But kBrightnessGrayscaleFadeDurationMs != 200
6 years, 11 months ago (2014-01-03 04:15:40 UTC) #10
varkha
https://codereview.chromium.org/105673008/diff/350001/ash/wm/window_animations.cc File ash/wm/window_animations.cc (right): https://codereview.chromium.org/105673008/diff/350001/ash/wm/window_animations.cc#newcode141 ash/wm/window_animations.cc:141: base::TimeDelta::FromMilliseconds(kLayerAnimationsForMinimizeDurationMS)); On 2014/01/03 04:15:40, pkotwicz wrote: > But kBrightnessGrayscaleFadeDurationMs ...
6 years, 11 months ago (2014-01-03 04:39:18 UTC) #11
varkha
lgtm https://codereview.chromium.org/105673008/diff/350001/ash/wm/window_animations.cc File ash/wm/window_animations.cc (right): https://codereview.chromium.org/105673008/diff/350001/ash/wm/window_animations.cc#newcode141 ash/wm/window_animations.cc:141: base::TimeDelta::FromMilliseconds(kLayerAnimationsForMinimizeDurationMS)); On 2014/01/03 04:39:19, varkha wrote: > On ...
6 years, 11 months ago (2014-01-03 05:40:54 UTC) #12
pkotwicz
Oshima, can you please take a look?
6 years, 11 months ago (2014-01-04 01:26:55 UTC) #13
pkotwicz
The changes in ui/compositor/ are a partial revert of https://codereview.chromium.org/82573002
6 years, 11 months ago (2014-01-04 01:29:43 UTC) #14
oshima
lgtm https://codereview.chromium.org/105673008/diff/550001/ui/compositor/layer_animator.h File ui/compositor/layer_animator.h (right): https://codereview.chromium.org/105673008/diff/550001/ui/compositor/layer_animator.h#newcode299 ui/compositor/layer_animator.h:299: base::TimeDelta GetTransitionDuration() const; maybe we should rename this ...
6 years, 11 months ago (2014-01-08 00:29:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/105673008/650001
6 years, 11 months ago (2014-01-15 00:53:04 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 11 months ago (2014-01-15 14:06:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/105673008/680002
6 years, 11 months ago (2014-01-15 19:16:19 UTC) #18
commit-bot: I haz the power
Change committed as 245031
6 years, 11 months ago (2014-01-16 00:22:58 UTC) #19
pkotwicz
A revert of this CL has been created in https://codereview.chromium.org/141023008/ by pkotwicz@chromium.org. The reason for ...
6 years, 11 months ago (2014-01-19 00:02:50 UTC) #20
pkotwicz
6 years, 11 months ago (2014-01-19 00:41:22 UTC) #21
Message was sent while issue was closed.
Note: The attempt to revert the CL was unsuccessful because of merge conflicts.
It is worth tracking down the root cause properly

Powered by Google App Engine
This is Rietveld 408576698