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

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 (rebased) 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
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_masks| is set hides the
tdanderson 2016/07/18 16:26:57 nit: "is set," (comma)
varkha 2016/07/19 00:29:07 Done.
109 // original window header and uses rounded rectangle mask which may be
110 // resource-intensive.
109 void SetTransform(WmWindow* root_window, 111 void SetTransform(WmWindow* root_window,
110 const gfx::Transform& transform, 112 const gfx::Transform& transform,
113 bool use_masks,
111 float radius); 114 float radius);
112 115
113 // Set's the opacity of the managed windows. 116 // Set's the opacity of the managed windows.
114 void SetOpacity(float opacity); 117 void SetOpacity(float opacity);
115 118
116 WmWindow* window() const { return window_; } 119 WmWindow* window() const { return window_; }
117 120
118 // Closes the transient root of the window managed by |this|. 121 // Closes the transient root of the window managed by |this|.
119 void Close(); 122 void Close();
120 123
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 float original_opacity_; 174 float original_opacity_;
172 175
173 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_; 176 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_;
174 177
175 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); 178 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow);
176 }; 179 };
177 180
178 } // namespace ash 181 } // namespace ash
179 182
180 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 183 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | ash/common/wm/overview/window_grid.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698