devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5ee913426d0e0326122f7d29407ce481a0a3af22

commit 5ee913426d0e0326122f7d29407ce481a0a3af22
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Jun 7 11:08:33 2017 -0400

    ecore-wl2: Add API function to set surface buffer transform
    
    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.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h        | 11 +++++++++++
 src/lib/ecore_wl2/ecore_wl2_window.c |  8 ++++++++
 2 files changed, 19 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 669564b814..c8c8b6f374 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -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
  *
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index 672a69b065..bc319635f4 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -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);
+}

-- 


Reply via email to