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

Issue 2254733003: Add ui::LayerObserver and use it to update Alt+Tab previews as needed. (Closed)

Created:
4 years, 4 months ago by Evan Stade
Modified:
4 years, 3 months ago
Reviewers:
varkha, oshima, sky, piman
CC:
chromium-reviews, sadrul, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, piman+watch_chromium.org, kalyank, 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

Add ui::LayerObserver and use it to update Alt+Tab previews as needed. This fixes the Google Maps app part of the bug, and is necessary but not sufficient to fix the minimized window/swapped-out renderer part of the bug. BUG=636594 Committed: https://crrev.com/696aa48c01ff79afbde347312f790fb54406d430 Cr-Commit-Position: refs/heads/master@{#416071}

Patch Set 1 #

Patch Set 2 : appease compiler #

Total comments: 2

Patch Set 3 : with other fix too #

Patch Set 4 : just this fix #

Patch Set 5 : bad at git #

Patch Set 6 : layer owner #

Total comments: 6

Patch Set 7 : no children #

Patch Set 8 : curlies #

Total comments: 1

Patch Set 9 : ok no dcheck #

Patch Set 10 : fix unit tests #

Patch Set 11 : fix for other test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -62 lines) Patch
M ash/common/wm/forwarding_layer_delegate.h View 1 2 2 chunks +20 lines, -10 lines 0 comments Download
M ash/common/wm/forwarding_layer_delegate.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +38 lines, -20 lines 0 comments Download
M ash/wm/drag_window_controller.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M ash/wm/window_mirror_view.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ash/wm/window_mirror_view.cc View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M ui/compositor/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 5 6 4 chunks +7 lines, -0 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 6 6 chunks +17 lines, -3 lines 0 comments Download
A ui/compositor/layer_observer.h View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
M ui/wm/core/window_util.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M ui/wm/core/window_util.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M ui/wm/core/window_util_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -13 lines 0 comments Download

Messages

Total messages: 48 (21 generated)
Evan Stade
4 years, 4 months ago (2016-08-18 03:58:06 UTC) #2
sky
https://codereview.chromium.org/2254733003/diff/20001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/2254733003/diff/20001/ui/compositor/layer.cc#newcode769 ui/compositor/layer.cc:769: for (Layer* ancestor = this; ancestor; ancestor = ancestor->parent()) ...
4 years, 4 months ago (2016-08-18 13:36:22 UTC) #7
Evan Stade
https://codereview.chromium.org/2254733003/diff/20001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/2254733003/diff/20001/ui/compositor/layer.cc#newcode769 ui/compositor/layer.cc:769: for (Layer* ancestor = this; ancestor; ancestor = ancestor->parent()) ...
4 years, 4 months ago (2016-08-18 15:57:31 UTC) #8
Evan Stade
On 2016/08/18 15:57:31, Evan Stade wrote: > https://codereview.chromium.org/2254733003/diff/20001/ui/compositor/layer.cc > File ui/compositor/layer.cc (right): > > https://codereview.chromium.org/2254733003/diff/20001/ui/compositor/layer.cc#newcode769 ...
4 years, 4 months ago (2016-08-18 17:29:36 UTC) #9
sky
ForwardingLayerDelegate is a bit error prone, in so far as it relies on pointers to ...
4 years, 4 months ago (2016-08-18 19:22:26 UTC) #10
Evan Stade
ForwardingLayerDelegate does not try to stay in sync with the layer, but with the layer's ...
4 years, 4 months ago (2016-08-18 19:27:18 UTC) #12
sky
Oshima created it for dragging across displays, which needs to mirror too. I believe the ...
4 years, 4 months ago (2016-08-18 19:37:09 UTC) #13
Evan Stade
On 2016/08/18 19:37:09, sky wrote: > Oshima created it for dragging across displays, which needs ...
4 years, 4 months ago (2016-08-18 19:47:31 UTC) #14
Evan Stade
+piman, is this a bad or good use of OnDelegatedFrameDamage? Best summary I can provide: ...
4 years, 4 months ago (2016-08-18 20:02:41 UTC) #16
piman
On 2016/08/18 20:02:41, Evan Stade wrote: > +piman, is this a bad or good use ...
4 years, 4 months ago (2016-08-18 20:33:53 UTC) #17
Evan Stade
thanks for the quick response. On 2016/08/18 20:33:53, piman wrote: > OnDelegatedFrameDamage is really meant ...
4 years, 4 months ago (2016-08-18 21:12:26 UTC) #18
piman
On Thu, Aug 18, 2016 at 2:12 PM, <estade@chromium.org> wrote: > thanks for the quick ...
4 years, 4 months ago (2016-08-18 21:32:28 UTC) #19
oshima
does the same issue happen when you drag a window to another display on chromeos?
4 years, 4 months ago (2016-08-19 19:47:02 UTC) #20
Evan Stade
On 2016/08/19 19:47:02, oshima wrote: > does the same issue happen when you drag a ...
4 years, 4 months ago (2016-08-21 22:06:09 UTC) #21
oshima
On 2016/08/21 22:06:09, Evan Stade wrote: > On 2016/08/19 19:47:02, oshima wrote: > > does ...
4 years, 4 months ago (2016-08-21 22:12:23 UTC) #22
Evan Stade
OK everyone, thanks for the feedback. The latest patch incorporates a lot of it. Now: ...
4 years, 4 months ago (2016-08-23 01:23:48 UTC) #23
piman
lgtm
4 years, 4 months ago (2016-08-23 02:27:19 UTC) #24
sky
https://codereview.chromium.org/2254733003/diff/100001/ash/common/wm/forwarding_layer_delegate.cc File ash/common/wm/forwarding_layer_delegate.cc (right): https://codereview.chromium.org/2254733003/diff/100001/ash/common/wm/forwarding_layer_delegate.cc#newcode50 ash/common/wm/forwarding_layer_delegate.cc:50: std::unique_ptr<ui::Layer> recreated = owner->RecreateLayer(); Don't you need to reset ...
4 years, 4 months ago (2016-08-23 17:15:07 UTC) #25
Evan Stade
https://codereview.chromium.org/2254733003/diff/100001/ash/common/wm/forwarding_layer_delegate.cc File ash/common/wm/forwarding_layer_delegate.cc (right): https://codereview.chromium.org/2254733003/diff/100001/ash/common/wm/forwarding_layer_delegate.cc#newcode50 ash/common/wm/forwarding_layer_delegate.cc:50: std::unique_ptr<ui::Layer> recreated = owner->RecreateLayer(); On 2016/08/23 17:15:07, sky wrote: ...
4 years, 3 months ago (2016-08-29 23:51:54 UTC) #26
sky
https://codereview.chromium.org/2254733003/diff/140001/ash/common/wm/forwarding_layer_delegate.cc File ash/common/wm/forwarding_layer_delegate.cc (right): https://codereview.chromium.org/2254733003/diff/140001/ash/common/wm/forwarding_layer_delegate.cc#newcode50 ash/common/wm/forwarding_layer_delegate.cc:50: // tend to have children anyway. I'm nervous about ...
4 years, 3 months ago (2016-08-30 00:03:13 UTC) #27
Evan Stade
On 2016/08/30 00:03:13, sky wrote: > https://codereview.chromium.org/2254733003/diff/140001/ash/common/wm/forwarding_layer_delegate.cc > File ash/common/wm/forwarding_layer_delegate.cc (right): > > https://codereview.chromium.org/2254733003/diff/140001/ash/common/wm/forwarding_layer_delegate.cc#newcode50 > ...
4 years, 3 months ago (2016-08-30 01:09:19 UTC) #28
sky
Thanks, LGTM
4 years, 3 months ago (2016-08-30 03:26:07 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2254733003/160001
4 years, 3 months ago (2016-08-30 14:30:59 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/255033)
4 years, 3 months ago (2016-08-30 14:45:36 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2254733003/200001
4 years, 3 months ago (2016-09-01 20:10:03 UTC) #45
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 3 months ago (2016-09-01 21:50:26 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 21:52:54 UTC) #48
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/696aa48c01ff79afbde347312f790fb54406d430
Cr-Commit-Position: refs/heads/master@{#416071}

Powered by Google App Engine
This is Rietveld 408576698