Commit e875eb99 authored by scottmg@chromium.org's avatar scottmg@chromium.org

Set hbrBackground on wndclass, fixes white flash on resize

When in DWM, the DefWindowProc handling of WM_NCPAINT was clearing (to
white) in the area that was not yet drawn. When the wndclass's
background is set to COLOR_WINDOW this is avoided and the frame
appears to stay more "solid".

This only affects the white flash in the NC area in the linked bug,
not the grey in the content area. We should also consider reverting
the compositor.cc change from here http://crrev.com/192657 as it seems
to make resize a bit laggier.

R=sky@chromium.org
BUG=177115

Review URL: https://chromiumcodereview.appspot.com/23596011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221608 0039d316-1c4b-4281-b951-d872f2087c98
parent dbddc746
...@@ -100,7 +100,7 @@ ATOM ClassRegistrar::RetrieveClassAtom(const ClassInfo& class_info) { ...@@ -100,7 +100,7 @@ ATOM ClassRegistrar::RetrieveClassAtom(const ClassInfo& class_info) {
string16 name = string16(WindowImpl::kBaseClassName) + string16 name = string16(WindowImpl::kBaseClassName) +
base::IntToString16(registered_count_++); base::IntToString16(registered_count_++);
HBRUSH background = NULL; HBRUSH background = reinterpret_cast<HBRUSH>(COLOR_WINDOW);
WNDCLASSEX window_class; WNDCLASSEX window_class;
base::win::InitializeWindowClass( base::win::InitializeWindowClass(
name.c_str(), name.c_str(),
......
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