Hi Kristian: Could you help to review this patch? Libva related changes are here for your reference: https://gitorious.org/libva-wayland/libva-wayland/commits/wayland
From: wayland-devel-bounces+halley.zhao=intel....@lists.freedesktop.org [mailto:wayland-devel-bounces+halley.zhao=intel....@lists.freedesktop.org] On Behalf Of Zhao, Halley Sent: Friday, February 17, 2012 5:20 PM To: wayland-devel@lists.freedesktop.org Subject: [PATCH] wayland-egl: Add api to get window/pixmap attributes wl_egl_window/wl_egl_pixmap are implemented in mesa, however these drawables can also be update in video/camera modules. One example is that libva also manage buffer object for it, so the attributes of the drawable should be accessed outside of mesa. See Benjamin's work to enable libva for wayland: http://cgit.freedesktop.org/~bnf/libva/log/?h=wayland (I ported it to latest wayland api). With this patch, we can remove the hack to copy wayland-egl-priv.h from mesa to libva. src/wayland-egl.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/wayland-egl.h b/src/wayland-egl.h index 56811a7..8ec5b2e 100644 --- a/src/wayland-egl.h +++ b/src/wayland-egl.h @@ -59,6 +59,12 @@ wl_egl_pixmap_destroy(struct wl_egl_pixmap *egl_pixmap); struct wl_buffer * wl_egl_pixmap_create_buffer(struct wl_egl_pixmap *egl_pixmap); +void wl_egl_window_get_size(struct wl_egl_window *egl_window, + int *width, int *height); +struct wl_surface* wl_egl_window_get_surface(struct wl_egl_window *win); +void wl_egl_pixmap_get_size(struct wl_egl_pixmap *egl_pixmap, + int *width, int *height); + #ifdef __cplusplus } #endif -- 1.7.5.4
_______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel