[webkit-changes] [WebKit/WebKit] b727a1: [GTK] Display VBlank monitor stops when the monito...

Carlos Garcia Campos noreply at github.com
Fri Oct 6 06:40:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b727a1776a5f033a37ee0461b7d2111d5fa363f3
      https://github.com/WebKit/WebKit/commit/b727a1776a5f033a37ee0461b7d2111d5fa363f3
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    M Source/WebKit/UIProcess/glib/DisplayVBlankMonitorDRM.cpp

  Log Message:
  -----------
  [GTK] Display VBlank monitor stops when the monitor is off
https://bugs.webkit.org/show_bug.cgi?id=262779

Reviewed by Alejandro G. Castro.

When the monitor we are using to get the vblank signal is off or
suspended, drmWaitVBlank fails with -EPERM. That's considered fatal
error and we stop sending the signal to the web process, so that when
the monitor is back we don't get any display update. This only happens
in the few cases in which the view is not notified to be non-visible,
and the vblank monitor keeps running. In those cases we can just handle
the error and keep trying after sleeping for a while until it successes
again.

* Source/WebKit/UIProcess/glib/DisplayVBlankMonitorDRM.cpp:
(WebKit::DisplayVBlankMonitorDRM::waitForVBlank const):

Canonical link: https://commits.webkit.org/268988@main




More information about the webkit-changes mailing list