From: SooChan Lim Date: Mon, 12 Feb 2018 01:40:26 +0000 (+0900) Subject: hwc: add hwc_window_get_buffer at backend function X-Git-Tag: submit/tizen/20180212.074346~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de319d72948f8839bc78b7ca8cca87fc3d0abe17;p=platform%2Fcore%2Fuifw%2Flibtdm.git hwc: add hwc_window_get_buffer at backend function Change-Id: I4ca3a45175259f57a2ca073293e73d13744224c3 --- diff --git a/include/tdm_backend.h b/include/tdm_backend.h index cbd8a82f..01c02335 100644 --- a/include/tdm_backend.h +++ b/include/tdm_backend.h @@ -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