| Index: views/widget/native_widget_win.cc
|
| diff --git a/views/widget/native_widget_win.cc b/views/widget/native_widget_win.cc
|
| index 7b47e960311d515c4a69251015b3f6ad3db46ca2..3e2336c28e111177901fd3e005b60ae0a4e7c925 100644
|
| --- a/views/widget/native_widget_win.cc
|
| +++ b/views/widget/native_widget_win.cc
|
| @@ -460,6 +460,15 @@ void NativeWidgetWin::PopForceHidden() {
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| +// NativeWidgetWin, CompositorDelegate implementation:
|
| +
|
| +void NativeWidgetWin::ScheduleCompositorPaint() {
|
| + RECT rect;
|
| + ::GetClientRect(GetNativeView(), &rect);
|
| + InvalidateRect(GetNativeView(), &rect, FALSE);
|
| +}
|
| +
|
| +////////////////////////////////////////////////////////////////////////////////
|
| // NativeWidgetWin, NativeWidget implementation:
|
|
|
| void NativeWidgetWin::InitNativeWidget(const Widget::InitParams& params) {
|
| @@ -1247,7 +1256,7 @@ LRESULT NativeWidgetWin::OnCreate(CREATESTRUCT* create_struct) {
|
| } else {
|
| CRect window_rect;
|
| GetClientRect(&window_rect);
|
| - compositor_ = ui::Compositor::Create(
|
| + compositor_ = ui::Compositor::Create(this,
|
| hwnd(),
|
| gfx::Size(window_rect.Width(), window_rect.Height()));
|
| }
|
|
|