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

Unified Diff: ash/common/wm/overview/scoped_transform_overview_window.cc

Issue 2134943002: Make the ChromeOS overview window clear its mask (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/overview/scoped_transform_overview_window.cc
diff --git a/ash/common/wm/overview/scoped_transform_overview_window.cc b/ash/common/wm/overview/scoped_transform_overview_window.cc
index ca1974343fc8cc04797ae5dae6cc593286b98d7c..85ce68406e8afbea7f78a0188a6b560e030795b2 100644
--- a/ash/common/wm/overview/scoped_transform_overview_window.cc
+++ b/ash/common/wm/overview/scoped_transform_overview_window.cc
@@ -400,6 +400,7 @@ void ScopedTransformOverviewWindow::SetTransform(
if (ash::MaterialDesignController::IsOverviewMaterial() && !mask_) {
mask_.reset(new OverviewContentMask(
window()->GetIntProperty(WmWindowProperty::TOP_VIEW_INSET), radius));
+ mask_->layer()->SetFillsBoundsOpaquely(false);
varkha 2016/07/09 11:26:13 Brilliant, thanks for a quick tip! The code here [
mask_->layer()->SetBounds(GetTargetBoundsInScreen());
window()->GetLayer()->SetMaskLayer(mask_->layer());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698