History

wayland: rename wayland_format to compositor_format

Cosmetic. This is to better indicate that these formats come from the compositor.

Dudemanguy committed 2 years ago

Commit 7d4abdb1 parent d02f03b3 files · +8 −8Browse files

Unified · Split

3 files
  1. video/out/wayland_common.c +3 −3
  2. video/out/wayland_common.h +3 −3
  3. video/out/wldmabuf/ra_wldmabuf.c +2 −2
video/out/wayland_common.c+3−3
@@ -1361,8 +1361,8 @@ static void format_table(void *data, · 1360 unmodified lines
13611361 close(fd);
13621362
13631363 if (map != MAP_FAILED) {
1364− wl->format_map = map;
1365− wl->format_size = size;
1364+ wl->compositor_format_map = map;
1365+ wl->compositor_format_size = size;
13661366 }
13671367 }
13681368
@@ -2931,7 +2931,7 @@ void vo_wayland_uninit(struct vo *vo) · 1562 unmodified lines
29312931 if (wl->display)
29322932 wl_display_disconnect(wl->display);
29332933
2934− munmap(wl->format_map, wl->format_size);
2934+ munmap(wl->compositor_format_map, wl->compositor_format_size);
29352935
29362936 for (int n = 0; n < 2; n++)
29372937 close(wl->wakeup_pipe[n]);
video/out/wayland_common.h+3−3
@@ -28,7 +28,7 @@ typedef struct { · 27 unmodified lines
2828 uint32_t format;
2929 uint32_t padding;
3030 uint64_t modifier;
31−} wayland_format;
31+} compositor_format;
3232
3333 struct vo_wayland_state {
3434 struct m_config_cache *opts_cache;
@@ -104,8 +104,8 @@ struct vo_wayland_state { · 69 unmodified lines
104104 /* linux-dmabuf */
105105 struct zwp_linux_dmabuf_v1 *dmabuf;
106106 struct zwp_linux_dmabuf_feedback_v1 *dmabuf_feedback;
107− wayland_format *format_map;
108− uint32_t format_size;
107+ compositor_format *compositor_format_map;
108+ uint32_t compositor_format_size;
109109
110110 /* presentation-time */
111111 struct wp_presentation *presentation;
video/out/wldmabuf/ra_wldmabuf.c+2−2
@@ -32,9 +32,9 @@ bool ra_compatible_format(struct ra* ra, uint32_t drm_format, uint64_t modifier) · 31 unmodified lines
3232 {
3333 struct priv* p = ra->priv;
3434 struct vo_wayland_state *wl = p->vo->wl;
35− const wayland_format *formats = wl->format_map;
35+ const compositor_format *formats = wl->compositor_format_map;
3636
37− for (int i = 0; i < wl->format_size / sizeof(wayland_format); i++) {
37+ for (int i = 0; i < wl->compositor_format_size / sizeof(compositor_format); i++) {
3838 if (drm_format == formats[i].format && modifier == formats[i].modifier)
3939 return true;
4040 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t