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

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

Issue 2146323004: [ash-md] Improves smoothness with many windows in overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Improves smoothness with many windows in overview (added flags) 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 | « ash/common/ash_switches.cc ('k') | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | 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.h
diff --git a/ash/common/wm/overview/scoped_transform_overview_window.h b/ash/common/wm/overview/scoped_transform_overview_window.h
index a32974ad2824d9b24151835cdf14f6ea5001b1ea..6f8a904ae991e249daec6d9c131527cc79fad676 100644
--- a/ash/common/wm/overview/scoped_transform_overview_window.h
+++ b/ash/common/wm/overview/scoped_transform_overview_window.h
@@ -105,9 +105,14 @@ class ASH_EXPORT ScopedTransformOverviewWindow {
// Applies the |transform| to the overview window and all of its transient
// children. With Material Design creates a mask layer with the bottom edge
- // using rounded corners of |radius|.
+ // using rounded corners of |radius|. When |use_mask| is set, hides the
+ // original window header and uses rounded rectangle mask which may be
+ // resource-intensive. When |use_shape| is set and |use_mask| is not, uses
+ // SetAlphaShape to mask the header.
void SetTransform(WmWindow* root_window,
const gfx::Transform& transform,
+ bool use_mask,
+ bool use_shape,
float radius);
// Set's the opacity of the managed windows.
« no previous file with comments | « ash/common/ash_switches.cc ('k') | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698