From 5518711d744f1d412cbfb551718cf684cb701d61 Mon Sep 17 00:00:00 2001 From: stransky Date: Wed, 14 May 2025 05:52:55 +0000 Subject: [PATCH] Bug 1961724 [Linux] Flush GL rendering at NativeLayerWaylandRender::NotifySurfaceReady() as we need to have complete GL rendering for wl_buffer export r=gw Differential Revision: https://phabricator.services.mozilla.com/D248989 --- gfx/layers/NativeLayerWayland.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/layers/NativeLayerWayland.cpp b/gfx/layers/NativeLayerWayland.cpp index c3429ae826d2..3f3c55810807 100644 --- a/gfx/layers/NativeLayerWayland.cpp +++ b/gfx/layers/NativeLayerWayland.cpp @@ -987,6 +987,9 @@ void NativeLayerWaylandRender::NotifySurfaceReady() { MOZ_DIAGNOSTIC_ASSERT(!mFrontBuffer); MOZ_DIAGNOSTIC_ASSERT(mInProgressBuffer); mFrontBuffer = std::move(mInProgressBuffer); + if (mSurfacePoolHandle->gl()) { + mSurfacePoolHandle->gl()->FlushIfHeavyGLCallsSinceLastFlush(); + } } void NativeLayerWaylandRender::DiscardBackbuffersLocked(