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

Issue 180273025: Keep dedicated layers for hiding animation (Closed)

Created:
6 years, 9 months ago by oshima
Modified:
6 years, 9 months ago
CC:
chromium-reviews, tfarina, ben+corewm_chromium.org
Visibility:
Public.

Description

Keep dedicated layers for hiding animation Introduced ScopedHidingAnimationSettings to set hiding animations Remove the restacking code from FocusController, and other obsolete tests. BUG=315843 TEST=WindowAnimationTest.HideAnimationDetachLayers, WindowAnimationTest.HideAnimationDetachLayersWithTransientChild R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258220

Patch Set 1 : #

Patch Set 2 : fix OnWnidowDestroying #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Total comments: 17

Patch Set 5 : #

Total comments: 17

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 11

Patch Set 10 : use new RecreateLayers + LayerTreeOwner #

Patch Set 11 : #

Total comments: 5

Patch Set 12 : #

Patch Set 13 : ScopedHidingAnimationSettings #

Total comments: 9

Patch Set 14 : updated comments #

Patch Set 15 : #

Total comments: 1

Patch Set 16 : #

Patch Set 17 : #

Total comments: 14

Patch Set 18 : #

Patch Set 19 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -203 lines) Patch
M ash/wm/maximize_mode/workspace_backdrop_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -4 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 18 1 chunk +2 lines, -4 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 16 17 18 4 chunks +12 lines, -20 lines 0 comments Download
M ash/wm/window_animations_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +4 lines, -0 lines 0 comments Download
M ash/wm/workspace_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +7 lines, -2 lines 0 comments Download
M ui/wm/core/focus_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -25 lines 0 comments Download
M ui/wm/core/focus_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -18 lines 0 comments Download
M ui/wm/core/visibility_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -37 lines 0 comments Download
M ui/wm/core/window_animations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +22 lines, -6 lines 0 comments Download
M ui/wm/core/window_animations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 15 chunks +126 lines, -87 lines 0 comments Download
M ui/wm/core/window_animations_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +150 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (0 generated)
oshima
I'll add test if you're ok with this approach. please let me know.
6 years, 9 months ago (2014-03-04 23:00:17 UTC) #1
oshima
On 2014/03/04 23:00:17, oshima wrote: > I'll add test if you're ok with this approach. ...
6 years, 9 months ago (2014-03-04 23:40:36 UTC) #2
oshima
uploaded new patch. PTAL.
6 years, 9 months ago (2014-03-04 23:50:53 UTC) #3
sky
I'm still not clear on why we need this. I get that the order is ...
6 years, 9 months ago (2014-03-05 00:59:54 UTC) #4
sky
Ben's change is here: https://codereview.chromium.org/184983005/ . It looks like it won't overlap with what you're ...
6 years, 9 months ago (2014-03-05 15:49:05 UTC) #5
Ben Goodger (Google)
Another note... sky you were going to move RecreateWindowLayers back to ash... but won't calling ...
6 years, 9 months ago (2014-03-05 16:12:25 UTC) #6
sky
Indeed. If we really need RecreateWindowLayers here then I'll need to add a new method ...
6 years, 9 months ago (2014-03-05 16:17:50 UTC) #7
oshima
https://codereview.chromium.org/180273025/diff/140001/ui/views/corewm/focus_controller.cc File ui/views/corewm/focus_controller.cc (right): https://codereview.chromium.org/180273025/diff/140001/ui/views/corewm/focus_controller.cc#newcode222 ui/views/corewm/focus_controller.cc:222: StackWindowLayerAbove(window, next_window); On 2014/03/05 15:49:05, sky wrote: > Is ...
6 years, 9 months ago (2014-03-05 17:14:21 UTC) #8
sky
On Wed, Mar 5, 2014 at 9:14 AM, <oshima@chromium.org> wrote: > > https://codereview.chromium.org/180273025/diff/140001/ui/views/corewm/focus_controller.cc > File ...
6 years, 9 months ago (2014-03-05 17:34:21 UTC) #9
oshima
On 2014/03/05 17:34:21, sky wrote: > On Wed, Mar 5, 2014 at 9:14 AM, <mailto:oshima@chromium.org> ...
6 years, 9 months ago (2014-03-05 18:30:50 UTC) #10
oshima
uploaded the new patch which Recreate layer in window_animations.cc Please let me know what you ...
6 years, 9 months ago (2014-03-05 20:52:24 UTC) #11
sky
Is there a reason to look at focus? That is, can we do this all ...
6 years, 9 months ago (2014-03-05 21:49:50 UTC) #12
oshima
changed as discussed offline. Added tests. PTAL.
6 years, 9 months ago (2014-03-07 01:34:16 UTC) #13
sky
https://codereview.chromium.org/180273025/diff/280001/ui/views/corewm/window_animations.cc File ui/views/corewm/window_animations.cc (right): https://codereview.chromium.org/180273025/diff/280001/ui/views/corewm/window_animations.cc#newcode128 ui/views/corewm/window_animations.cc:128: window_->AddObserver(this); This code previously cared about the window so ...
6 years, 9 months ago (2014-03-07 15:14:54 UTC) #14
Ben Goodger (Google)
https://codereview.chromium.org/180273025/diff/280001/ui/views/corewm/window_animations.cc File ui/views/corewm/window_animations.cc (right): https://codereview.chromium.org/180273025/diff/280001/ui/views/corewm/window_animations.cc#newcode135 ui/views/corewm/window_animations.cc:135: layer_.reset(views::corewm::RecreateWindowLayers(window_, true)); On 2014/03/07 15:14:54, sky wrote: > Layer ...
6 years, 9 months ago (2014-03-07 15:51:53 UTC) #15
sky
https://codereview.chromium.org/180273025/diff/280001/ui/views/corewm/window_animations.cc File ui/views/corewm/window_animations.cc (right): https://codereview.chromium.org/180273025/diff/280001/ui/views/corewm/window_animations.cc#newcode135 ui/views/corewm/window_animations.cc:135: layer_.reset(views::corewm::RecreateWindowLayers(window_, true)); On 2014/03/07 15:51:54, Ben Goodger (Google) wrote: ...
6 years, 9 months ago (2014-03-07 16:34:57 UTC) #16
Ben Goodger (Google)
It does look like everywhere else that uses RecreateWindowLayers remembers to call DeepDeleteLayers so there ...
6 years, 9 months ago (2014-03-07 19:44:45 UTC) #17
oshima
I'll update the RecreateLayer once sky's change is landed but the rest is ready. PTAL. ...
6 years, 9 months ago (2014-03-08 00:14:29 UTC) #18
sky
https://codereview.chromium.org/180273025/diff/350001/ui/views/corewm/window_animations.cc File ui/views/corewm/window_animations.cc (right): https://codereview.chromium.org/180273025/diff/350001/ui/views/corewm/window_animations.cc#newcode201 ui/views/corewm/window_animations.cc:201: // hiding animation, creates new layers for the window ...
6 years, 9 months ago (2014-03-10 13:30:39 UTC) #19
oshima
https://codereview.chromium.org/180273025/diff/350001/ui/views/corewm/window_animations.cc File ui/views/corewm/window_animations.cc (right): https://codereview.chromium.org/180273025/diff/350001/ui/views/corewm/window_animations.cc#newcode201 ui/views/corewm/window_animations.cc:201: // hiding animation, creates new layers for the window ...
6 years, 9 months ago (2014-03-10 17:48:24 UTC) #20
sky
https://codereview.chromium.org/180273025/diff/440001/ui/views/corewm/window_animations.h File ui/views/corewm/window_animations.h (right): https://codereview.chromium.org/180273025/diff/440001/ui/views/corewm/window_animations.h#newcode89 ui/views/corewm/window_animations.h:89: // deteached layer's animator, and will be deleted when ...
6 years, 9 months ago (2014-03-11 16:10:53 UTC) #21
oshima
https://codereview.chromium.org/180273025/diff/440001/ui/views/corewm/window_animations.h File ui/views/corewm/window_animations.h (right): https://codereview.chromium.org/180273025/diff/440001/ui/views/corewm/window_animations.h#newcode89 ui/views/corewm/window_animations.h:89: // deteached layer's animator, and will be deleted when ...
6 years, 9 months ago (2014-03-11 17:45:20 UTC) #22
sky
https://codereview.chromium.org/180273025/diff/440001/ui/views/corewm/window_animations.h File ui/views/corewm/window_animations.h (right): https://codereview.chromium.org/180273025/diff/440001/ui/views/corewm/window_animations.h#newcode100 ui/views/corewm/window_animations.h:100: // This is used to make sure the hiding ...
6 years, 9 months ago (2014-03-11 19:16:22 UTC) #23
oshima
Changed the approach as discussed offline. This is not final review and tests needs to ...
6 years, 9 months ago (2014-03-12 00:31:47 UTC) #24
sky
With this approach it is totally non-obvious that the focus controller from shell is needed ...
6 years, 9 months ago (2014-03-12 02:30:34 UTC) #25
oshima
On 2014/03/12 02:30:34, sky wrote: > With this approach it is totally non-obvious that the ...
6 years, 9 months ago (2014-03-12 16:47:57 UTC) #26
oshima
updated the patch as discussed. Please let me know what you think.
6 years, 9 months ago (2014-03-13 18:58:28 UTC) #27
sky
https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h File ui/wm/core/window_animations.h (right): https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h#newcode99 ui/wm/core/window_animations.h:99: // When set to true, this recreates layers for ...
6 years, 9 months ago (2014-03-13 21:09:36 UTC) #28
oshima
https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h File ui/wm/core/window_animations.h (right): https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h#newcode99 ui/wm/core/window_animations.h:99: // When set to true, this recreates layers for ...
6 years, 9 months ago (2014-03-13 22:03:15 UTC) #29
sky
https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h File ui/wm/core/window_animations.h (right): https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h#newcode99 ui/wm/core/window_animations.h:99: // When set to true, this recreates layers for ...
6 years, 9 months ago (2014-03-13 22:04:04 UTC) #30
oshima
On 2014/03/13 22:04:04, sky wrote: > https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h > File ui/wm/core/window_animations.h (right): > > https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h#newcode99 > ...
6 years, 9 months ago (2014-03-13 22:13:25 UTC) #31
oshima
On 2014/03/13 22:04:04, sky wrote: > https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h > File ui/wm/core/window_animations.h (right): > > https://codereview.chromium.org/180273025/diff/700001/ui/wm/core/window_animations.h#newcode99 > ...
6 years, 9 months ago (2014-03-13 22:18:01 UTC) #32
sky
I think I like enum LayerStrategy { LAYER_STRATEGY_RECREATE_LAYERS, LAYER_STRATEGY_AQCUIRE_LAYERS } inside ScopedHidingAnimationSettings https://codereview.chromium.org/180273025/diff/740001/ui/wm/core/window_animations.cc File ui/wm/core/window_animations.cc ...
6 years, 9 months ago (2014-03-13 22:34:04 UTC) #33
oshima
removed acquire layer path as discussed. PTAL.
6 years, 9 months ago (2014-03-14 00:54:40 UTC) #34
sky
Nice, LGTM https://codereview.chromium.org/180273025/diff/750011/ui/wm/core/window_animations.cc File ui/wm/core/window_animations.cc (right): https://codereview.chromium.org/180273025/diff/750011/ui/wm/core/window_animations.cc#newcode64 ui/wm/core/window_animations.cc:64: // 1) Notifies AnimatinoHost the end of ...
6 years, 9 months ago (2014-03-14 14:32:12 UTC) #35
oshima
https://codereview.chromium.org/180273025/diff/750011/ui/wm/core/window_animations.cc File ui/wm/core/window_animations.cc (right): https://codereview.chromium.org/180273025/diff/750011/ui/wm/core/window_animations.cc#newcode64 ui/wm/core/window_animations.cc:64: // 1) Notifies AnimatinoHost the end of hiding animation. ...
6 years, 9 months ago (2014-03-14 16:35:24 UTC) #36
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 9 months ago (2014-03-14 16:36:02 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/180273025/820001
6 years, 9 months ago (2014-03-14 16:36:34 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 20:06:50 UTC) #39
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=282182
6 years, 9 months ago (2014-03-14 20:06:51 UTC) #40
oshima
On 2014/03/14 20:06:51, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 9 months ago (2014-03-15 00:36:21 UTC) #41
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 9 months ago (2014-03-16 15:33:11 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/180273025/950001
6 years, 9 months ago (2014-03-16 15:33:16 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-16 15:33:28 UTC) #44
commit-bot: I haz the power
Failed to apply patch for ash/wm/maximize_mode/workspace_backdrop_delegate.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-16 15:33:29 UTC) #45
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 9 months ago (2014-03-16 22:55:23 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/180273025/960001
6 years, 9 months ago (2014-03-16 22:55:28 UTC) #47
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-16 22:57:42 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-16 22:57:43 UTC) #49
oshima
rebased & uploaded new patch. Failing thest is: SystemTrayTest.SystemTrayNoViewItems Here is the summary of the ...
6 years, 9 months ago (2014-03-19 17:46:18 UTC) #50
oshima
On 2014/03/19 17:46:18, oshima wrote: > rebased & uploaded new patch. > > Failing thest ...
6 years, 9 months ago (2014-03-19 22:39:16 UTC) #51
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 9 months ago (2014-03-19 22:39:26 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/180273025/1020001
6 years, 9 months ago (2014-03-19 22:42:03 UTC) #53
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 22:48:08 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-19 22:48:09 UTC) #55
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 9 months ago (2014-03-19 23:53:33 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/180273025/1020001
6 years, 9 months ago (2014-03-19 23:55:22 UTC) #57
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 06:18:17 UTC) #58
Message was sent while issue was closed.
Change committed as 258220

Powered by Google App Engine
This is Rietveld 408576698