Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1e569695d21e775da81a79111300975afe81b5f4
      
https://github.com/WebKit/WebKit/commit/1e569695d21e775da81a79111300975afe81b5f4
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2024-08-01 (Thu, 01 Aug 2024)

  Changed paths:
    M Source/WebKit/SourcesGTK.txt
    A Source/WebKit/UIProcess/glib/FenceMonitor.cpp
    A Source/WebKit/UIProcess/glib/FenceMonitor.h
    M Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp
    M Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.h
    M Source/WebKit/UIProcess/gtk/WebPageProxyGtk.cpp

  Log Message:
  -----------
  [GTK] Add support for explicit sync
https://bugs.webkit.org/show_bug.cgi?id=277485

Reviewed by Alejandro G. Castro.

In case of GTK we can't pass the fence to GTK to wait for it, but we can
just wait for it ourselves by polling the sync file. This way we avoid
the client wait in the web process on every rendered frame.

* Source/WebKit/SourcesGTK.txt:
* Source/WebKit/UIProcess/glib/FenceMonitor.cpp: Added.
(WebKit::FenceMonitor::FenceMonitor):
(WebKit::FenceMonitor::~FenceMonitor):
(WebKit::FenceSource::~FenceSource):
(WebKit::FenceMonitor::ensureSource):
(WebKit::isFileDescriptorReadable):
(WebKit::FenceMonitor::addFileDescriptor):
* Source/WebKit/UIProcess/glib/FenceMonitor.h: Added.
* Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp:
(WebKit::AcceleratedBackingStoreDMABuf::AcceleratedBackingStoreDMABuf):
(WebKit::AcceleratedBackingStoreDMABuf::frame):
* Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.h:
* Source/WebKit/UIProcess/gtk/WebPageProxyGtk.cpp:
(WebKit::WebPageProxy::useExplicitSync const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to