mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1083173 - Resume composition on compositor creation. r=kats
This commit is contained in:
parent
408acc2e79
commit
04ec9860b3
@ -929,10 +929,6 @@ nsWindow::OnGlobalAndroidEvent(AndroidGeckoEvent *ae)
|
||||
}
|
||||
break;
|
||||
|
||||
case AndroidGeckoEvent::COMPOSITOR_CREATE:
|
||||
win->CreateLayerManager(ae->Width(), ae->Height());
|
||||
break;
|
||||
|
||||
case AndroidGeckoEvent::COMPOSITOR_PAUSE:
|
||||
// The compositor gets paused when the app is about to go into the
|
||||
// background. While the compositor is paused, we need to ensure that
|
||||
@ -944,6 +940,10 @@ nsWindow::OnGlobalAndroidEvent(AndroidGeckoEvent *ae)
|
||||
sCompositorPaused = true;
|
||||
break;
|
||||
|
||||
case AndroidGeckoEvent::COMPOSITOR_CREATE:
|
||||
win->CreateLayerManager(ae->Width(), ae->Height());
|
||||
// Fallthrough
|
||||
|
||||
case AndroidGeckoEvent::COMPOSITOR_RESUME:
|
||||
// When we receive this, the compositor has already been told to
|
||||
// resume. (It turns out that waiting till we reach here to tell
|
||||
|
Loading…
Reference in New Issue
Block a user