From f1a6594ad7024a42f23411d5064543b92619af68 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 10 Jul 2019 20:42:45 +0300 Subject: [PATCH] libweston: Migrate functions that operate on 'weston_surface' Signed-off-by: Marius Vlad --- include/libweston/libweston.h | 15 --------------- libweston/libweston-internal.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 2476d311..8dec6f85 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -1639,18 +1639,6 @@ weston_view_from_global_fixed(struct weston_view *view, wl_fixed_t x, wl_fixed_t y, wl_fixed_t *vx, wl_fixed_t *vy); -void -weston_surface_to_buffer_float(struct weston_surface *surface, - float x, float y, float *bx, float *by); -pixman_box32_t -weston_surface_to_buffer_rect(struct weston_surface *surface, - pixman_box32_t rect); - -void -weston_surface_to_buffer_region(struct weston_surface *surface, - pixman_region32_t *surface_region, - pixman_region32_t *buffer_region); - void weston_spring_init(struct weston_spring *spring, double k, double current, double target); @@ -1884,9 +1872,6 @@ void weston_surface_set_size(struct weston_surface *surface, int32_t width, int32_t height); -void -weston_surface_schedule_repaint(struct weston_surface *surface); - void weston_surface_damage(struct weston_surface *surface); diff --git a/libweston/libweston-internal.h b/libweston/libweston-internal.h index 8dacbf1e..0bbd2196 100644 --- a/libweston/libweston-internal.h +++ b/libweston/libweston-internal.h @@ -249,4 +249,18 @@ weston_touch_start_drag(struct weston_touch *touch, bool weston_touch_device_can_calibrate(struct weston_touch_device *device); +/* weston_surface */ +void +weston_surface_to_buffer_float(struct weston_surface *surface, + float x, float y, float *bx, float *by); +pixman_box32_t +weston_surface_to_buffer_rect(struct weston_surface *surface, + pixman_box32_t rect); + +void +weston_surface_to_buffer_region(struct weston_surface *surface, + pixman_region32_t *surface_region, + pixman_region32_t *buffer_region); +void +weston_surface_schedule_repaint(struct weston_surface *surface); #endif