From 3ff296e93413931a972a274bd60a9b1731d35f7a Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 10 Jul 2019 21:27:49 +0300 Subject: [PATCH] libweston: Migrate functions that perform various transformations Signed-off-by: Marius Vlad --- include/libweston/libweston.h | 20 -------------------- libweston/libweston-internal.h | 20 ++++++++++++++++++++ libweston/screenshooter.c | 1 + 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 80c8116d..41db3037 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -2048,26 +2048,6 @@ weston_backend_init(struct weston_compositor *c, int weston_module_init(struct weston_compositor *compositor); -void -weston_transformed_coord(int width, int height, - enum wl_output_transform transform, - int32_t scale, - float sx, float sy, float *bx, float *by); -pixman_box32_t -weston_transformed_rect(int width, int height, - enum wl_output_transform transform, - int32_t scale, - pixman_box32_t rect); -void -weston_matrix_transform_region(pixman_region32_t *dest, - struct weston_matrix *matrix, - pixman_region32_t *src); -void -weston_transformed_region(int width, int height, - enum wl_output_transform transform, - int32_t scale, - pixman_region32_t *src, pixman_region32_t *dest); - void * weston_load_module(const char *name, const char *entrypoint); diff --git a/libweston/libweston-internal.h b/libweston/libweston-internal.h index c9d2fb70..04c75457 100644 --- a/libweston/libweston-internal.h +++ b/libweston/libweston-internal.h @@ -291,4 +291,24 @@ void weston_view_move_to_plane(struct weston_view *view, struct weston_plane *plane); +void +weston_transformed_coord(int width, int height, + enum wl_output_transform transform, + int32_t scale, + float sx, float sy, float *bx, float *by); +pixman_box32_t +weston_transformed_rect(int width, int height, + enum wl_output_transform transform, + int32_t scale, + pixman_box32_t rect); +void +weston_transformed_region(int width, int height, + enum wl_output_transform transform, + int32_t scale, + pixman_region32_t *src, pixman_region32_t *dest); +void +weston_matrix_transform_region(pixman_region32_t *dest, + struct weston_matrix *matrix, + pixman_region32_t *src); + #endif diff --git a/libweston/screenshooter.c b/libweston/screenshooter.c index 2c722a66..8c4eda3e 100644 --- a/libweston/screenshooter.c +++ b/libweston/screenshooter.c @@ -38,6 +38,7 @@ #include #include "shared/helpers.h" #include "shared/timespec-util.h" +#include "libweston-internal.h" #include "wcap/wcap-decode.h"