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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 767443002: Ensure Surface size always matches window size on swap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index 8fac698ae3f156b9bc033d45b5722b72c926c708..3752373d543cd95f5e4b1b5bdf070a6c0080ce98 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -941,7 +941,7 @@ bool DesktopWindowTreeHostWin::HandleScrollEvent(
void DesktopWindowTreeHostWin::HandleWindowSizeChanging() {
if (compositor() && need_synchronous_paint_) {
- compositor()->FinishAllRendering();
+ compositor()->DisableSwapUntilResize();
// If we received the window size changing notification due to a restore or
// maximize operation, then we can reset the need_synchronous_paint_ flag
// here. For a sizing operation, the flag will be reset at the end of the

Powered by Google App Engine
This is Rietveld 408576698