Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
51f2745
commit f78822d
Showing
20 changed files
with
816 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 0 additions & 132 deletions
132
Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormat.cpp
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.