Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d2072a2af8984a415fae3220bc70cb8eff767d79
https://github.com/WebKit/WebKit/commit/d2072a2af8984a415fae3220bc70cb8eff767d79
Author: Adrian Perez de Castro <[email protected]>
Date: 2025-12-04 (Thu, 04 Dec 2025)
Changed paths:
M Source/WebKit/UIProcess/API/wpe/WPEWebViewPlatform.cpp
M Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp
M Source/WebKit/WPEPlatform/CMakeLists.txt
R Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormats.cpp
R Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormats.h
A Source/WebKit/WPEPlatform/wpe/WPEBufferFormats.cpp
A Source/WebKit/WPEPlatform/wpe/WPEBufferFormats.h
M Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp
M Source/WebKit/WPEPlatform/wpe/WPEDisplay.h
M Source/WebKit/WPEPlatform/wpe/WPEToplevel.cpp
M Source/WebKit/WPEPlatform/wpe/WPEToplevel.h
M Source/WebKit/WPEPlatform/wpe/WPEView.cpp
M Source/WebKit/WPEPlatform/wpe/WPEView.h
M Source/WebKit/WPEPlatform/wpe/WPEViewPrivate.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/WPEToplevelWayland.cpp
M Source/WebKit/WPEPlatform/wpe/wayland/WPEViewWayland.cpp
M Source/WebKit/WPEPlatform/wpe/wpe-platform.h
M Tools/TestWebKitAPI/Tests/WPEPlatform/TestDisplay.cpp
M Tools/TestWebKitAPI/glib/WPEPlatform/mock/WPEDisplayMock.cpp
M Tools/TestWebKitAPI/glib/WPEPlatform/mock/WPEDisplayMock.h
M Tools/TestWebKitAPI/glib/WPEPlatform/mock/WPEToplevelMock.cpp
Log Message:
-----------
[WPEPlatform] Rename WPEBufferDMABufFormats et al. to WPEBufferFormats
https://bugs.webkit.org/show_bug.cgi?id=303474
Reviewed by Carlos Garcia Campos.
Platform implementations where DMA-BUF is not available may want to use
the existing mechanism to inform WebKit about supported buffer formats
e.g. on Android the API does not expose DMA-BUFs directly, therefore it
is not really needed to have the "DMA-BUF" term as part of type and
symbol names.
* Source/WebKit/UIProcess/API/wpe/WPEWebViewPlatform.cpp:
(WKWPE::ViewPlatform::ViewPlatform):
* Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp:
(WebKit::WebPageProxy::preferredBufferFormats const):
* Source/WebKit/WPEPlatform/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormats.h: Removed.
* Source/WebKit/WPEPlatform/wpe/WPEBufferFormats.cpp: Renamed from
Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormats.cpp.
(BufferFormat::BufferFormat):
(BufferFormatsGroup::BufferFormatsGroup):
(wpe_buffer_formats_class_init):
(wpe_buffer_formats_get_device):
(wpe_buffer_formats_get_n_groups):
(wpe_buffer_formats_get_group_usage):
(wpe_buffer_formats_get_group_device):
(wpe_buffer_formats_get_group_n_formats):
(wpe_buffer_formats_get_format_fourcc):
(wpe_buffer_formats_get_format_modifiers):
(_WPEBufferFormatsBuilder::_WPEBufferFormatsBuilder):
(wpe_buffer_formats_builder_new):
(wpe_buffer_formats_builder_ref):
(wpe_buffer_formats_builder_unref):
(wpe_buffer_formats_builder_append_group):
(wpe_buffer_formats_builder_append_format):
(wpe_buffer_formats_builder_end):
* Source/WebKit/WPEPlatform/wpe/WPEBufferFormats.h: Added.
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp:
(wpeDisplayPreferredBufferFormats):
(wpe_display_get_preferred_buffer_formats):
(wpeDisplayPreferredDMABufFormats): Deleted.
(wpe_display_get_preferred_dma_buf_formats): Deleted.
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.h:
* Source/WebKit/WPEPlatform/wpe/WPEToplevel.cpp:
(wpe_toplevel_get_preferred_buffer_formats):
(wpe_toplevel_preferred_buffer_formats_changed):
(wpe_toplevel_get_preferred_dma_buf_formats): Deleted.
(wpe_toplevel_preferred_dma_buf_formats_changed): Deleted.
* Source/WebKit/WPEPlatform/wpe/WPEToplevel.h:
* Source/WebKit/WPEPlatform/wpe/WPEView.cpp:
(wpe_view_class_init):
(wpeViewPreferredBufferFormatsChanged):
(wpe_view_set_toplevel):
(wpe_view_get_preferred_buffer_formats):
(wpeViewPreferredDMABufFormatsChanged): Deleted.
(wpe_view_get_preferred_dma_buf_formats): Deleted.
* Source/WebKit/WPEPlatform/wpe/WPEView.h:
* Source/WebKit/WPEPlatform/wpe/WPEViewPrivate.h:
* Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp:
(wpeDisplayDRMGetPreferredBufferFormats):
(wpe_display_drm_class_init):
(wpeDisplayDRMGetPreferredDMABufFormats): Deleted.
* Source/WebKit/WPEPlatform/wpe/headless/WPEDisplayHeadless.cpp:
* Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp:
(wpeDisplayWaylandGetPreferredBufferFormats):
(wpe_display_wayland_class_init):
(wpeDisplayWaylandGetPreferredDMABufFormats): Deleted.
* Source/WebKit/WPEPlatform/wpe/wayland/WPEToplevelWayland.cpp:
(wpeToplevelWaylandGetPreferredBufferFormats):
(wpe_toplevel_wayland_class_init):
(wpeToplevelWaylandGetPreferredDMABufFormats): Deleted.
* Source/WebKit/WPEPlatform/wpe/wayland/WPEViewWayland.cpp:
* Source/WebKit/WPEPlatform/wpe/wpe-platform.h:
* Tools/TestWebKitAPI/Tests/WPEPlatform/TestDisplay.cpp:
(TestWebKitAPI::testDisplayBufferFormats):
(TestWebKitAPI::beforeAll):
(TestWebKitAPI::testDisplayDMABufFormats): Deleted.
* Tools/TestWebKitAPI/glib/WPEPlatform/mock/WPEDisplayMock.cpp:
(wpeDisplayMockGetPreferredBufferFormats):
(wpe_display_mock_class_init):
(wpeDisplayMockUseFakeBufferFormats):
(wpeDisplayMockGetPreferredDMABufFormats): Deleted.
(wpeDisplayMockUseFakeDMABufFormats): Deleted.
* Tools/TestWebKitAPI/glib/WPEPlatform/mock/WPEDisplayMock.h:
* Tools/TestWebKitAPI/glib/WPEPlatform/mock/WPEToplevelMock.cpp:
(wpeToplevelMockGetPreferredBufferFormats):
(wpe_toplevel_mock_class_init):
(wpeToplevelMockGetPreferredDMABufFormats): Deleted.
Canonical link: https://commits.webkit.org/303891@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications