Disable chromium's redraw locking on Windows when DWM is disabled (#12501)

* disable redraw locking on windows

* update libcc ref

(cherry picked from commit a14ebc80d2)
This commit is contained in:
Heilig Benedek
2018-04-05 08:55:26 +02:00
committed by Nitish Sakhawalkar
parent 4efed0f5ed
commit 4abe5a2963
3 changed files with 9 additions and 1 deletions

View File

@@ -25,4 +25,11 @@ bool AtomDesktopWindowTreeHostWin::PreHandleMSG(
return delegate_->PreHandleMSG(message, w_param, l_param, result);
}
bool AtomDesktopWindowTreeHostWin::HasNativeFrame() const {
// Since we never use chromium's titlebar implementation, we can just say
// that we use a native titlebar. This will disable the repaint locking when
// DWM composition is disabled.
return true;
}
} // namespace atom

View File

@@ -27,6 +27,7 @@ class AtomDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin {
protected:
bool PreHandleMSG(
UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) override;
bool HasNativeFrame() const override;
private:
MessageHandlerDelegate* delegate_; // weak ref