libweston: Migrate functions that operate on 'weston_surface'

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad
2019-07-10 20:42:45 +03:00
committed by Daniel Stone
parent 9eb2064b85
commit f1a6594ad7
2 changed files with 14 additions and 15 deletions
+14
View File
@@ -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