diff --git a/widget/gtk/WindowSurfaceWayland.cpp b/widget/gtk/WindowSurfaceWayland.cpp index bda84375a349..d2c55de22dd6 100644 --- a/widget/gtk/WindowSurfaceWayland.cpp +++ b/widget/gtk/WindowSurfaceWayland.cpp @@ -37,9 +37,6 @@ extern mozilla::LazyLogModule gWidgetWaylandLog; // Maximal compositing timeout it miliseconds #define COMPOSITING_TIMEOUT 200 -// Maximal timeout between frame callbacks -#define FRAME_CALLBACK_TIMEOUT 20 - namespace mozilla { namespace widget { @@ -1002,12 +999,8 @@ void WindowSurfaceWayland::CommitWaylandBuffer() { if (waylandSurface == mLastCommittedSurface) { LOGWAYLAND((" [%p] wait for frame callback.\n", (void*)this)); // We have an active frame callback pending from our recent surface. - // It means we should defer the commit to FrameCallbackHandler(), - // but only if we're under frame callback timeout range. - if (mLastCommitTime && (g_get_monotonic_time() / 1000) - mLastCommitTime < - FRAME_CALLBACK_TIMEOUT) { - return; - } + // It means we should defer the commit to FrameCallbackHandler(). + return; } // If our stored wl_surface does not match the actual one it means the frame // callback is no longer active and we should release it.