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

Unified Diff: ash/common/wm/window_cycle_list.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: fix comments 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/common/wm/window_cycle_list.cc
diff --git a/ash/common/wm/window_cycle_list.cc b/ash/common/wm/window_cycle_list.cc
index c486947c27bb94a0a357023e5f9b71fbbb12dc57..e5122fc1c9a9729f73a4e62d1f2fb1dc8445bcd9 100644
--- a/ash/common/wm/window_cycle_list.cc
+++ b/ash/common/wm/window_cycle_list.cc
@@ -213,7 +213,7 @@ class WindowCycleView : public views::WidgetDelegateView {
highlight_view_(new views::View()),
target_window_(nullptr) {
DCHECK(!windows.empty());
- SetPaintToLayer(true);
+ SetPaintToLayer();
layer()->SetFillsBoundsOpaquely(false);
layer()->SetMasksToBounds(true);
layer()->SetOpacity(0.0);
@@ -232,7 +232,7 @@ class WindowCycleView : public views::WidgetDelegateView {
layout->set_cross_axis_alignment(
views::BoxLayout::CROSS_AXIS_ALIGNMENT_START);
mirror_container_->SetLayoutManager(layout);
- mirror_container_->SetPaintToLayer(true);
+ mirror_container_->SetPaintToLayer();
mirror_container_->layer()->SetFillsBoundsOpaquely(false);
for (WmWindow* window : windows) {
@@ -249,7 +249,8 @@ class WindowCycleView : public views::WidgetDelegateView {
views::Painter::CreateRoundRectWith1PxBorderPainter(
SkColorSetA(SK_ColorWHITE, 0x4D), SkColorSetA(SK_ColorWHITE, 0x33),
kBackgroundCornerRadius)));
- highlight_view_->SetPaintToLayer(true);
+ highlight_view_->SetPaintToLayer();
+
highlight_view_->layer()->SetFillsBoundsOpaquely(false);
AddChildView(highlight_view_);

Powered by Google App Engine
This is Rietveld 408576698