tdm_hwc_get_client_target_buffer_queue(tdm_hwc *hwc, tdm_error *error);
/**
+ * @brief Set the information of the client target buffer
+ * @details This function lets the backend know information of the target.
+ * @param[in] hwc A output hwc
+ * @param[in] info The information
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ * @since 3.1.0
+ */
+tdm_error
+tdm_hwc_set_client_target_buffer_info(tdm_hwc *hwc, tdm_hwc_window_info *info);
+
+/**
* @brief Set the client(relative to the TDM) target buffer
* @details This function lets the backend know the target buffer.
* The target buffer contains the result of the gl composition with the
* @return #TDM_ERROR_NONE if success. Otherwise, error value.
*/
tdm_error (*hwc_get_commit_interval)(tdm_hwc *hwc, tdm_hwc_commit_interval *interval);
+
+ /**
+ * @brief Set the information of the client target buffer
+ * @param[in] hwc A output hwc
+ * @param[in] info The information
+ * @return #TDM_ERROR_NONE if success. Otherwise, error value.
+ */
+ tdm_error (*hwc_set_client_target_buffer_info)(tdm_hwc *hwc, tdm_hwc_window_info *info);
} tdm_func_hwc;
/**
}
EXTERN tdm_error
+tdm_hwc_set_client_target_buffer_info(tdm_hwc *hwc, tdm_hwc_window_info *info)
+{
+ tdm_private_module *private_module;
+ tdm_func_hwc *func_hwc = NULL;
+
+ HWC_FUNC_ENTRY();
+
+ _pthread_mutex_lock(&private_display->lock);
+
+ private_module = private_hwc->private_module;
+ func_hwc = &private_module->func_hwc;
+
+ if (private_module->use_hal_tdm) {
+ ret = (tdm_error)hal_tdm_hwc_set_client_target_buffer_info((hal_tdm_hwc *)private_hwc->hwc_backend, (hal_tdm_hwc_window_info *)info);
+ } else {
+ if (!func_hwc->hwc_set_client_target_buffer_info) {
+ /* LCOV_EXCL_START */
+ _pthread_mutex_unlock(&private_display->lock);
+ return TDM_ERROR_NOT_IMPLEMENTED;
+ /* LCOV_EXCL_STOP */
+ }
+
+ ret = func_hwc->hwc_set_client_target_buffer_info(private_hwc->hwc_backend, info);
+ }
+
+ _pthread_mutex_unlock(&private_display->lock);
+
+ return ret;
+}
+
+EXTERN tdm_error
tdm_hwc_set_client_target_buffer(tdm_hwc *hwc, tbm_surface_h target_buffer, tdm_region damage)
{
tdm_private_module *private_module;