ecore-wl2: Add API function to set surface buffer transform
authorChris Michael <cp.michael@samsung.com>
Wed, 7 Jun 2017 15:08:33 +0000 (11:08 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 7 Jun 2017 15:09:58 +0000 (11:09 -0400)
Small patch to add an API function which can be called to set a buffer
transformation on a given window.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_window.c

index 669564b..c8c8b6f 100644 (file)
@@ -962,6 +962,17 @@ EAPI void ecore_wl2_window_type_set(Ecore_Wl2_Window *window, Ecore_Wl2_Window_T
 EAPI Ecore_Wl2_Output *ecore_wl2_window_output_find(Ecore_Wl2_Window *window);
 
 /**
+ * Set a buffer transform on a given window
+ *
+ * @param window The window on which to set the buffer transform
+ * @param transform The buffer transform being requested
+ *
+ * @ingroup Ecore_Wl2_Window_Group
+ * @since 1.20
+ */
+EAPI void ecore_wl2_window_buffer_transform_set(Ecore_Wl2_Window *window, int transform);
+
+/**
  * @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
  * @ingroup Ecore_Wl2_Group
  *
index 672a69b..bc31963 100644 (file)
@@ -1205,3 +1205,11 @@ ecore_wl2_window_output_find(Ecore_Wl2_Window *window)
 
    return NULL;
 }
+
+EAPI void
+ecore_wl2_window_buffer_transform_set(Ecore_Wl2_Window *window, int transform)
+{
+   EINA_SAFETY_ON_NULL_RETURN(window);
+
+   wl_surface_set_buffer_transform(window->surface, transform);
+}