Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f78822d601b744ee397c5b655c3d9191498e5821
      
https://github.com/WebKit/WebKit/commit/f78822d601b744ee397c5b655c3d9191498e5821
  Author: Carlos Garcia Campos <cgar...@igalia.com>
  Date:   2024-04-16 (Tue, 16 Apr 2024)

  Changed paths:
    M Source/WebKit/Shared/glib/DMABufRendererBufferFormat.h
    M Source/WebKit/Shared/glib/DMABufRendererBufferFormat.serialization.in
    M Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp
    M Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp
    M Source/WebKit/WPEPlatform/CMakeLists.txt
    R Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormat.cpp
    R Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormat.h
    A Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormats.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormats.h
    M Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp
    M Source/WebKit/WPEPlatform/wpe/WPEDisplay.h
    M Source/WebKit/WPEPlatform/wpe/WPEView.cpp
    M Source/WebKit/WPEPlatform/wpe/WPEView.h
    M Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp
    M Source/WebKit/WPEPlatform/wpe/headless/WPEDisplayHeadless.cpp
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEViewWayland.cpp
    M Source/WebKit/WPEPlatform/wpe/wpe-platform.h
    M Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.cpp
    M Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.h

  Log Message:
  -----------
  [WPE] WPE Platform: change the API to get the preferred DMA-BUF formats
https://bugs.webkit.org/show_bug.cgi?id=272667

Reviewed by Alejandro G. Castro.

The initial API we added was very simple, just providing a single list
of formats, usages and modifiers, but it turned out it was not so simple
to iterate the formats, since we always want to iterate by tranche.
Also, we want to handle the main and target devices in the future, so we
need a new API that simplifies the iteration by tranche and includes the
devices.

* Source/WebKit/Shared/glib/DMABufRendererBufferFormat.h:
(WebKit::DMABufRendererBufferFormat::operator== const): Deleted.
* Source/WebKit/Shared/glib/DMABufRendererBufferFormat.serialization.in:
* Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp:
(WebKit::WebPageProxy::preferredBufferFormats const):
* Source/WebKit/WPEPlatform/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormat.cpp: Removed.
* Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormat.h: Removed.
* Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormats.cpp: Added.
(DMABufFormat::DMABufFormat):
(DMABufFormatsGroup::DMABufFormatsGroup):
(wpe_buffer_dma_buf_formats_class_init):
(wpe_buffer_dma_buf_formats_get_device):
(wpe_buffer_dma_buf_formats_get_n_groups):
(wpe_buffer_dma_buf_formats_get_group_usage):
(wpe_buffer_dma_buf_formats_get_group_device):
(wpe_buffer_dma_buf_formats_get_group_n_formats):
(wpe_buffer_dma_buf_formats_get_format_fourcc):
(wpe_buffer_dma_buf_formats_get_format_modifiers):
(_WPEBufferDMABufFormatsBuilder::_WPEBufferDMABufFormatsBuilder):
(wpe_buffer_dma_buf_formats_builder_new):
(wpe_buffer_dma_buf_formats_builder_ref):
(wpe_buffer_dma_buf_formats_builder_unref):
(wpe_buffer_dma_buf_formats_builder_append_group):
(wpe_buffer_dma_buf_formats_builder_append_format):
(wpe_buffer_dma_buf_formats_builder_end):
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp:
(wpeDisplayDispose):
(wpeDisplayPreferredDMABufFormats):
(wpe_display_get_preferred_dma_buf_formats):
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.h:
* Source/WebKit/WPEPlatform/wpe/WPEView.cpp:
(wpe_view_class_init):
(wpe_view_get_preferred_dma_buf_formats):
(wpeViewDispose): Deleted.
* Source/WebKit/WPEPlatform/wpe/WPEView.h:
* Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp:
(wpeDisplayDRMGetPreferredDMABufFormats):
* Source/WebKit/WPEPlatform/wpe/headless/WPEDisplayHeadless.cpp:
(wpeDisplayHeadlessGetPreferredDMABufFormats):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp:
(wpeDisplayWaylandGetPreferredDMABufFormats):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEViewWayland.cpp:
(DMABufFeedback::DMABufFeedback):
(DMABufFeedback::drmDeviceForUsage):
(DMABufFeedback::drmDevice const):
(DMABufFeedback::Tranche::Tranche):
(DMABufFeedback::Tranche::drmDevice const):
(wpeViewWaylandGetPreferredDMABufFormats):
* Source/WebKit/WPEPlatform/wpe/wpe-platform.h:
* Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.cpp:
(WebKit::AcceleratedSurfaceDMABuf::RenderTargetEGLImage::create):
(WebKit::AcceleratedSurfaceDMABuf::SwapChain::setupBufferFormat):
* Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.h:

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



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

Reply via email to