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

Unified Diff: ash/wm/window_mirror_view.cc

Issue 2254733003: Add ui::LayerObserver and use it to update Alt+Tab previews as needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for other test Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/window_mirror_view.h ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_mirror_view.cc
diff --git a/ash/wm/window_mirror_view.cc b/ash/wm/window_mirror_view.cc
index d99fa48888f72b344ed17b0fa60cb798ad1bc867..d7f0ced6f948e0d8bae005b891180a80fca2a74b 100644
--- a/ash/wm/window_mirror_view.cc
+++ b/ash/wm/window_mirror_view.cc
@@ -74,13 +74,12 @@ void WindowMirrorView::OnVisibleBoundsChanged() {
InitLayerOwner();
}
-ui::LayerDelegate* WindowMirrorView::CreateDelegate(
- ui::LayerDelegate* delegate) {
- if (!delegate)
+ui::LayerDelegate* WindowMirrorView::CreateDelegate(ui::Layer* new_layer,
+ ui::Layer* old_layer) {
+ if (!old_layer || !old_layer->delegate())
return nullptr;
delegates_.push_back(
- base::MakeUnique<ForwardingLayerDelegate>(target_, delegate));
-
+ base::MakeUnique<ForwardingLayerDelegate>(new_layer, old_layer));
return delegates_.back().get();
}
« no previous file with comments | « ash/wm/window_mirror_view.h ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698