[webkit-changes] [WebKit/WebKit] c2361c: [WPE] WPE Platform: make functions to get DRM devi...

Carlos Garcia Campos noreply at github.com
Fri Mar 8 02:06:51 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c2361c31a74159368c4298faa9049cd0cc3a3453
      https://github.com/WebKit/WebKit/commit/c2361c31a74159368c4298faa9049cd0cc3a3453
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
    M Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
    M Source/WebKit/UIProcess/glib/DisplayVBlankMonitorDRM.cpp
    M Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
    M Source/WebKit/WPEPlatform/wpe/WPEBufferDMABuf.cpp
    M Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp
    M Source/WebKit/WPEPlatform/wpe/WPEDisplay.h
    M Source/WebKit/WPEPlatform/wpe/drm/CMakeLists.txt
    A Source/WebKit/WPEPlatform/wpe/drm/RefPtrUdev.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/RefPtrUdev.h
    M Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSeat.cpp
    M Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSeat.h
    M Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp

  Log Message:
  -----------
  [WPE] WPE Platform: make functions to get DRM device and render node members of WPEDisplay
https://bugs.webkit.org/show_bug.cgi?id=270629

Reviewed by Alejandro G. Castro.

They are currently global, and in the case of DRM might not be
consistent with what it's actually used. Now that we have the primary
display, we can move the API to WPEDisplay and return what every
platform is actually using.

* Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp:
(WebKit::WebKitProtocolHandler::handleGPU):
* Source/WebKit/UIProcess/glib/DisplayVBlankMonitorDRM.cpp:
(WebKit::DisplayVBlankMonitorDRM::create):
* Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp:
(WebKit::WebProcessPool::platformInitializeWebProcess):
* Source/WebKit/WPEPlatform/wpe/WPEBufferDMABuf.cpp:
(wpeBufferDMABufDispose):
(wpeBufferDMABufTryEnsureGBMDevice):
(wpeBufferDMABufImportToPixels):
(gbmDevice): Deleted.
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp:
(wpe_display_get_drm_device):
(wpe_display_get_drm_render_node):
(renderNodeFile): Deleted.
(wpeDRMRenderNodeFile): Deleted.
(wpe_render_node_device): Deleted.
(renderDeviceFile): Deleted.
(wpeDRMRenderDeviceFile): Deleted.
(wpe_render_device): Deleted.
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.h:
* Source/WebKit/WPEPlatform/wpe/drm/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/drm/RefPtrUdev.cpp: Added.
(WTF::udev>::refIfNotNull):
(WTF::udev>::derefIfNotNull):
(WTF::udev_device>::refIfNotNull):
(WTF::udev_device>::derefIfNotNull):
(WTF::udev_enumerate>::refIfNotNull):
(WTF::udev_enumerate>::derefIfNotNull):
* Source/WebKit/WPEPlatform/wpe/drm/RefPtrUdev.h: Added.
* Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSeat.cpp:
(WPE::DRM::Seat::create):
(WPE::DRM::Seat::Seat):
* Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSeat.h:
* Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp:
(findDevice):
(wpeDisplayDRMConnect):
(wpeDisplayDRMGetDRMDevice):
(wpeDisplayDRMGetDRMRenderNode):
(wpe_display_drm_class_init):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp:
(wpeDisplayWaylandDispose):
(wpeDisplayWaylandConnect):
(wpeDisplayWaylandGetDRMDevice):
(wpeDisplayWaylandGetDRMRenderNode):
(wpe_display_wayland_class_init):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list