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

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..b604e45c7648aa0e46a3ab70e7ae91dfedde91a4 100644
--- a/ash/wm/window_mirror_view.cc
+++ b/ash/wm/window_mirror_view.cc
@@ -89,9 +89,9 @@ void WindowMirrorView::InitLayerOwner() {
true);
}
- layer_owner_ = ::wm::RecreateLayers(target_->aura_window(), this);
+ layer_owner_ =
+ ::wm::MirrorLayers(target_->aura_window(), this, false /* sync_bounds */);
- 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