mirror of
https://github.com/servo/servo.git
synced 2025-06-17 04:44:28 +00:00
Stop animations when window is hidden (API + UWP)
This commit is contained in:
parent
5597ccf57d
commit
6ddde1a3e1
11 changed files with 77 additions and 0 deletions
|
@ -247,6 +247,9 @@ void ServoControl::GoForward() {
|
|||
void ServoControl::Reload() {
|
||||
RunOnGLThread([=] { mServo->Reload(); });
|
||||
}
|
||||
void ServoControl::ChangeVisibility(bool visible) {
|
||||
RunOnGLThread([=] { mServo->ChangeVisibility(visible); });
|
||||
}
|
||||
void ServoControl::Stop() {
|
||||
RunOnGLThread([=] { mServo->Stop(); });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue