зеркало из https://github.com/electron/electron.git
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:
Родитель
5486a65702
Коммит
a14ebc80d2
|
@ -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
|
||||
|
|
|
@ -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
|
Загрузка…
Ссылка в новой задаче