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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 5 #ifndef ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Informs the ScopedTransformOverviewWindow that the window being watched was 99 // Informs the ScopedTransformOverviewWindow that the window being watched was
100 // destroyed. This resets the internal window pointer. 100 // destroyed. This resets the internal window pointer.
101 void OnWindowDestroyed(); 101 void OnWindowDestroyed();
102 102
103 // Prepares for overview mode by doing any necessary actions before entering. 103 // Prepares for overview mode by doing any necessary actions before entering.
104 void PrepareForOverview(); 104 void PrepareForOverview();
105 105
106 // Applies the |transform| to the overview window and all of its transient 106 // Applies the |transform| to the overview window and all of its transient
107 // children. With Material Design creates a mask layer with the bottom edge 107 // children. With Material Design creates a mask layer with the bottom edge
108 // using rounded corners of |radius|. 108 // using rounded corners of |radius|. When |use_mask| is set, hides the
109 // original window header and uses rounded rectangle mask which may be
110 // resource-intensive. When |use_shape| is set and |use_mask| is not, uses
111 // SetAlphaShape to mask the header.
109 void SetTransform(WmWindow* root_window, 112 void SetTransform(WmWindow* root_window,
110 const gfx::Transform& transform, 113 const gfx::Transform& transform,
114 bool use_mask,
115 bool use_shape,
111 float radius); 116 float radius);
112 117
113 // Set's the opacity of the managed windows. 118 // Set's the opacity of the managed windows.
114 void SetOpacity(float opacity); 119 void SetOpacity(float opacity);
115 120
116 WmWindow* window() const { return window_; } 121 WmWindow* window() const { return window_; }
117 122
118 // Closes the transient root of the window managed by |this|. 123 // Closes the transient root of the window managed by |this|.
119 void Close(); 124 void Close();
120 125
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 float original_opacity_; 176 float original_opacity_;
172 177
173 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_; 178 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_;
174 179
175 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); 180 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow);
176 }; 181 };
177 182
178 } // namespace ash 183 } // namespace ash
179 184
180 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 185 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
OLDNEW
« 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