зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1605906 - Add Pause/Resume handling to CompositorOGL for Wayland r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D58210 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
29800f6c89
Коммит
271d83b87e
|
@ -2148,11 +2148,15 @@ void CompositorOGL::Pause() {
|
|||
java::GeckoSurfaceTexture::DetachAllFromGLContext((int64_t)mGLContext.get());
|
||||
// ReleaseSurface internally calls MakeCurrent
|
||||
gl()->ReleaseSurface();
|
||||
#elif defined(MOZ_WAYLAND)
|
||||
// ReleaseSurface internally calls MakeCurrent
|
||||
gl()->ReleaseSurface();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool CompositorOGL::Resume() {
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_UIKIT)
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_UIKIT) || \
|
||||
defined(MOZ_WAYLAND)
|
||||
if (!gl() || gl()->IsDestroyed()) return false;
|
||||
|
||||
// RenewSurface internally calls MakeCurrent.
|
||||
|
|
Загрузка…
Ссылка в новой задаче