From: SooChan Lim Date: Wed, 19 Sep 2018 10:21:02 +0000 (+0900) Subject: tdm_hwc: change the symbol names of preperation types into constraints X-Git-Tag: accepted/tizen/unified/20180921.042507~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Flibtdm.git;a=commitdiff_plain;h=feeaa2e26e9fc8c3e3672b58f0e3c0d9c2f83709 tdm_hwc: change the symbol names of preperation types into constraints Change-Id: Ia02711a6d927edf6785048db171929e446398020 --- diff --git a/include/tdm.h b/include/tdm.h index 0b40cd5..42837ab 100644 --- a/include/tdm.h +++ b/include/tdm.h @@ -1099,14 +1099,13 @@ tdm_error tdm_hwc_window_set_property(tdm_hwc_window *hwc_window, uint32_t id, tdm_value value); /** - * @brief Get the preperation type of hwc_window + * @brief Get the constraints of hwc_window * @param[in] hwc window A hwc window object - * @param[out] preperation_types The tdm_hwc_window_preparation types + * @param[out] constraints The tdm_hwc_window_constraint types * @return #TDM_ERROR_NONE if success. Otherwise, error value. */ tdm_error -tdm_hwc_window_get_preparation_types(tdm_hwc_window *hwc_window, - int *preparation_types); +tdm_hwc_window_get_constraints(tdm_hwc_window *hwc_window, int *constraints); /** * @brief Destroy a pp object diff --git a/include/tdm_backend.h b/include/tdm_backend.h index f695562..e7d08ee 100644 --- a/include/tdm_backend.h +++ b/include/tdm_backend.h @@ -971,13 +971,13 @@ typedef struct _tdm_func_hwc_window { uint32_t id, tdm_value *value); /** - * @brief Get the preperation type of hwc_window + * @brief Get the constraints of hwc_window * @param[in] hwc window A hwc window object - * @param[out] preperation_types The tdm_hwc_window_preparation types + * @param[out] constraints The tdm_hwc_window_constraint types * @return #TDM_ERROR_NONE if success. Otherwise, error value. */ - tdm_error (*hwc_window_get_preparation_types)(tdm_hwc_window *hwc_window, - int *preperation_types); + tdm_error (*hwc_window_get_constraints)(tdm_hwc_window *hwc_window, + int *constraints); } tdm_func_hwc_window; /** diff --git a/include/tdm_types.h b/include/tdm_types.h index 225325f..072f466 100644 --- a/include/tdm_types.h +++ b/include/tdm_types.h @@ -206,14 +206,16 @@ typedef enum { } tdm_hwc_window_composition; typedef enum { - TDM_PREPARATION_NONE = 0, + TDM_CONSTRAINT_NONE = 0, /** If the client needs to render to a specific buffer for compositing - * with TDM_COMPOSITION_DEVICE, Set TDM_PREPARATION_BUFFER_QUEUE type to hwc_window. - * The client will render next frame on buffers of queue which got by - * tdm_hwc_window_acquire_buffer_queue. + * with TDM_COMPOSITION_DEVICE, the backend needs to set + * TDM_CONSTRAINT_BUFFER_QUEUE to hwc_window until the hwc_window is not + * TDM_COMPOSITION_DEVICE. The client gets the tbm_surface_queue_h through + * the tdm_hwc_window_aquire_buffer_queue. It will render the frames on + * the buffers which gets from the tbm_surface_queue_h. */ - TDM_PREPARATION_BUFFER_QUEUE = (1 << 0), -} tdm_hwc_window_preparation; + TDM_CONSTRAINT_BUFFER_QUEUE = (1 << 0), +} tdm_hwc_window_constraint; /** * @brief The hwc window flag enumeration diff --git a/src/tdm_hwc_window.c b/src/tdm_hwc_window.c index 0066ef3..ce04c51 100644 --- a/src/tdm_hwc_window.c +++ b/src/tdm_hwc_window.c @@ -443,8 +443,7 @@ tdm_hwc_window_set_property(tdm_hwc_window *hwc_window, unsigned int id, tdm_val } EXTERN tdm_error -tdm_hwc_window_get_preparation_types(tdm_hwc_window *hwc_window, - int *preparation_types) +tdm_hwc_window_get_constraints(tdm_hwc_window *hwc_window, int *constraints) { tdm_private_module *private_module; tdm_func_hwc_window *func_hwc_window = NULL; @@ -456,13 +455,13 @@ tdm_hwc_window_get_preparation_types(tdm_hwc_window *hwc_window, private_module = private_output->private_module; func_hwc_window = &private_module->func_hwc_window; - if (!func_hwc_window->hwc_window_get_preparation_types) { + if (!func_hwc_window->hwc_window_get_constraints) { _pthread_mutex_unlock(&private_display->lock); TDM_WRN("not implemented!!"); return TDM_ERROR_NOT_IMPLEMENTED; } - ret = func_hwc_window->hwc_window_get_preparation_types(private_hwc_window->hwc_window_backend, preparation_types); + ret = func_hwc_window->hwc_window_get_constraints(private_hwc_window->hwc_window_backend, constraints); _pthread_mutex_unlock(&private_display->lock);