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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.h

Issue 528173002: Restrict the number of cases where we force the compositor to do a synchronous paint to resizing an… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review comments Created 6 years, 3 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 | « no previous file | ui/views/widget/desktop_aura/desktop_window_tree_host_win.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include "ui/aura/window_tree_host.h" 8 #include "ui/aura/window_tree_host.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" 10 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 corewm::TooltipWin* tooltip_; 257 corewm::TooltipWin* tooltip_;
258 258
259 // Visibility of the cursor. On Windows we can have multiple root windows and 259 // Visibility of the cursor. On Windows we can have multiple root windows and
260 // the implementation of ::ShowCursor() is based on a counter, so making this 260 // the implementation of ::ShowCursor() is based on a counter, so making this
261 // member static ensures that ::ShowCursor() is always called exactly once 261 // member static ensures that ::ShowCursor() is always called exactly once
262 // whenever the cursor visibility state changes. 262 // whenever the cursor visibility state changes.
263 static bool is_cursor_visible_; 263 static bool is_cursor_visible_;
264 264
265 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; 265 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
266 266
267 // This flag is set to true in cases where we need to force a synchronous
268 // paint via the compositor. Cases include restoring/resizing/maximizing the
269 // window. Defaults to false.
270 bool need_synchronous_paint_;
271
272 // Set to true if we are about to enter a sizing loop.
273 bool in_sizing_loop_;
274
267 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); 275 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin);
268 }; 276 };
269 277
270 } // namespace views 278 } // namespace views
271 279
272 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 280 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698