Commit 39cca93b authored by tmoniuszko@opera.com's avatar tmoniuszko@opera.com

Don't redraw plugin windows on moving when using gpu browser compositor

Plugin windows are redrawn after EndDeferWindowPos call anyway.
Redrawing in SetWindowRgn causes plugin windows to be drawn on browser chrome.

BUG=

Review URL: https://codereview.chromium.org/118163003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242070 0039d316-1c4b-4281-b951-d872f2087c98
parent 4837225e
......@@ -292,7 +292,8 @@ void RenderWidgetHostViewBase::MovePluginWindowsHelper(
// Note: System will own the hrgn after we call SetWindowRgn,
// so we don't need to call DeleteObject(hrgn)
::SetWindowRgn(window, hrgn, !move.clip_rect.IsEmpty());
::SetWindowRgn(window, hrgn,
!move.clip_rect.IsEmpty() && (flags & SWP_NOREDRAW) == 0);
#if defined(USE_AURA)
// When using the software compositor, if the clipping rectangle is empty
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment