hwc: add hwc_window_get_buffer at backend function 88/169888/2
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 12 Feb 2018 01:40:26 +0000 (10:40 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 12 Feb 2018 06:55:29 +0000 (06:55 +0000)
Change-Id: I4ca3a45175259f57a2ca073293e73d13744224c3

include/tdm_backend.h

index cbd8a82fd34a550b80181a8724eafeb99e442992..01c02335325a50bd3a37a06b1b0e540fd6b0b71e 100644 (file)
@@ -946,6 +946,21 @@ typedef struct _tdm_func_window {
         */
        tdm_error (*hwc_window_unset_buffer)(tdm_hwc_window *hwc_window);
 
+       /**
+        * @brief Get a buffer which is set to a window object
+        * @details A TDM buffer will be applied when the output object
+        * of a layer object is committed.
+        * @param[in] hwc_window A window object
+        * @param[out] error #TDM_ERROR_NONE if success. Otherwise, error value.
+        * @return A buffer which is @b assigend to a window object
+        *
+        * Implementation should return #TDM_ERROR_BUSY if #hwc_window can't
+        * be updated right now, this won't be interpreted like some critical
+        * error.
+        */
+       tbm_surface_h (*hwc_window_get_buffer)(tdm_hwc_window *hwc_window,
+                                                                          tdm_error *error);
+
        /**
         * @brief Set a flags to a window object
         * @param[in] hwc_window A window object