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

Unified Diff: content/common/gpu/child_window_surface_win.cc

Issue 1676413004: Use SetWindowPos on DirectComposition child window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ; Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/child_window_surface_win.cc
diff --git a/content/common/gpu/child_window_surface_win.cc b/content/common/gpu/child_window_surface_win.cc
index 738caea87adf0926ce62a5920a8ccbe91ec4b46c..185c5374940584653f6b0d0661eb056d5320832b 100644
--- a/content/common/gpu/child_window_surface_win.cc
+++ b/content/common/gpu/child_window_surface_win.cc
@@ -141,7 +141,10 @@ bool ChildWindowSurfaceWin::Resize(const gfx::Size& size,
if (size == GetSize() && has_alpha == alpha_)
return true;
- if (!MoveWindow(window_, 0, 0, size.width(), size.height(), FALSE)) {
+ // Force a resize and redraw (but not a move, activate, etc.).
+ if (!SetWindowPos(window_, nullptr, 0, 0, size.width(), size.height(),
+ SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOCOPYBITS |
+ SWP_NOOWNERZORDER | SWP_NOZORDER)) {
return false;
}
size_ = size;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698