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

Unified Diff: ash/wm/window_mirror_view.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: Refactor Created 3 years, 11 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 52c87d15e070181c2474abac64e57dab64ff7839..44916c266d2224168f6f6d1032e71c4c962374f2 100644
--- a/ash/wm/window_mirror_view.cc
+++ b/ash/wm/window_mirror_view.cc
@@ -12,6 +12,7 @@
#include "ui/aura/window.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_tree_owner.h"
+#include "ui/compositor/layer_type.h"
#include "ui/views/widget/widget.h"
#include "ui/wm/core/window_util.h"
@@ -86,7 +87,7 @@ void WindowMirrorView::InitLayerOwner() {
layer_owner_ =
::wm::MirrorLayers(target_->aura_window(), false /* sync_bounds */);
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
layer()->Add(GetMirrorLayer());
// This causes us to clip the non-client areas of the window.
layer()->SetMasksToBounds(true);

Powered by Google App Engine
This is Rietveld 408576698