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

* disable redraw locking on windows

* update libcc ref
This commit is contained in:
Heilig Benedek 2018-04-05 08:55:26 +02:00 committed by Cheng Zhao
parent 5486a65702
commit a14ebc80d2
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

@ -1 +1 @@
Subproject commit 0db373051269a57127bac86e4857dfc40feebca8
Subproject commit 76a718409b7b859c6b708492e89aab0389fe447f