hwc_window: tdm_hwc_window_get_preparation_types
[platform/core/uifw/libtdm.git] / include / tdm_types.h
index 32f544d..c596ac6 100644 (file)
@@ -177,12 +177,6 @@ typedef enum {
         */
        TDM_COMPOSITION_CLIENT = 1,
 
-       /** Set by the client before tdm_hwc_validate().
-        *
-        * Upon tdm_hwc_validate(), the device may request a change from this type to
-        * TDM_COMPOSITION_DEVICE or TDM_COMPOSITION_CLIENT. */
-       TDM_COMPOSITION_DEVICE_CANDIDATE = 2,
-
        /** Set by the HWC after tdm_hwc_validate().
         *
         * The device will handle the composition of this window through a hardware
@@ -211,6 +205,16 @@ typedef enum {
        TDM_COMPOSITION_VIDEO = 5,
 } tdm_hwc_window_composition;
 
+typedef enum {
+       TDM_PREPARATION_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_get_buffer_queue.
+        */
+       TDM_PREPARATION_BUFFER_QUEUE = (1 << 0),
+} tdm_hwc_window_preparation;
+
 /**
  * @brief The hwc window flag enumeration
  * @since 2.0.0