tdm_hwc: change the symbol names of preperation types into constraints
[platform/core/uifw/libtdm.git] / include / tdm_types.h
index 225325f..072f466 100644 (file)
@@ -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