Commit d2072a2
committed
[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@main1 parent ca64223 commit d2072a2
File tree
23 files changed
+469
-470
lines changed- Source/WebKit
- UIProcess
- API/wpe
- wpe
- WPEPlatform
- wpe
- drm
- headless
- wayland
- Tools/TestWebKitAPI
- Tests/WPEPlatform
- glib/WPEPlatform/mock
23 files changed
+469
-470
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
| 143 | + | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
This file was deleted.
0 commit comments