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

Unified Diff: ash/wm/window_mirror_view.cc

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Rebase Created 4 years, 2 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
Index: ash/wm/window_mirror_view.cc
diff --git a/ash/wm/window_mirror_view.cc b/ash/wm/window_mirror_view.cc
index d7f0ced6f948e0d8bae005b891180a80fca2a74b..8c080768261e05b347cb64ca801a5f85f5bee0c2 100644
--- a/ash/wm/window_mirror_view.cc
+++ b/ash/wm/window_mirror_view.cc
@@ -89,9 +89,8 @@ void WindowMirrorView::InitLayerOwner() {
true);
}
- layer_owner_ = ::wm::RecreateLayers(target_->aura_window(), this);
+ layer_owner_ = ::wm::MirrorLayers(target_->aura_window(), this);
- GetMirrorLayer()->parent()->Remove(GetMirrorLayer());
SetPaintToLayer(true);
layer()->Add(GetMirrorLayer());
// This causes us to clip the non-client areas of the window.

Powered by Google App Engine
This is Rietveld 408576698