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:
parent
5486a65702
commit
a14ebc80d2
3 changed files with 9 additions and 1 deletions
|
@ -25,4 +25,11 @@ bool AtomDesktopWindowTreeHostWin::PreHandleMSG(
|
||||||
return delegate_->PreHandleMSG(message, w_param, l_param, result);
|
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
|
} // namespace atom
|
||||||
|
|
|
@ -27,6 +27,7 @@ class AtomDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin {
|
||||||
protected:
|
protected:
|
||||||
bool PreHandleMSG(
|
bool PreHandleMSG(
|
||||||
UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) override;
|
UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) override;
|
||||||
|
bool HasNativeFrame() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MessageHandlerDelegate* delegate_; // weak ref
|
MessageHandlerDelegate* delegate_; // weak ref
|
||||||
|
|
2
vendor/libchromiumcontent
vendored
2
vendor/libchromiumcontent
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 0db373051269a57127bac86e4857dfc40feebca8
|
Subproject commit 76a718409b7b859c6b708492e89aab0389fe447f
|
Loading…
Add table
Add a link
Reference in a new issue