tbm_surface_queue_h
tdm_hwc_window_get_tbm_buffer_queue(tdm_hwc_window *hwc_window, tdm_error *error);
-/**
- * @brief Sets the desired Z order of the given window. A window with
- * a greater Z value occludes a window with a lesser Z value.
- * @param[in] hwc_window A window object
- * @param[in] z the new Z order
- * @return #TDM_ERROR_NONE if success. Otherwise, error value.
- * @since 2.0.0
- */
-tdm_error
-tdm_hwc_window_set_zpos(tdm_hwc_window *hwc_window, int32_t zpos);
-
/**
* @brief Sets the desired composition type of the given window.
* @details During tdm_output_hwc_validate(), the device may request changes to
tbm_surface_queue_h (*hwc_window_get_tbm_buffer_queue)(tdm_hwc_window *hwc_window,
tdm_error *error);
- /**
- * @brief Sets the desired Z order (height) of the given window. A window with
- * a greater Z value occludes a window with a lesser Z value.
- * @param[in] hwc_window A window object
- * @param[in] z the new Z order
- * @return #TDM_ERROR_NONE if success. Otherwise, error value.
- */
- tdm_error (*hwc_window_set_zpos)(tdm_hwc_window *hwc_window, int32_t zpos);
-
/**
* @brief Sets the desired composition type of the given window.
* @details During output_hwc_validate(), the device may request changes to
return queue;
}
-EXTERN tdm_error
-tdm_hwc_window_set_zpos(tdm_hwc_window *hwc_window, int32_t zpos)
-{
- tdm_func_hwc_window *func_hwc_window = NULL;
-
- HWC_WINDOW_FUNC_ENTRY();
-
- _pthread_mutex_lock(&private_display->lock);
-
- func_hwc_window = &private_display->func_hwc_window;
-
- if (!func_hwc_window->hwc_window_set_zpos) {
- /* LCOV_EXCL_START */
- _pthread_mutex_unlock(&private_display->lock);
- TDM_ERR("not implemented!!");
- return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_STOP */
- }
-
- ret = func_hwc_window->hwc_window_set_zpos(private_hwc_window->hwc_window_backend, zpos);
- if (ret == TDM_ERROR_NONE)
- private_hwc_window->zpos = zpos;
-
- _pthread_mutex_unlock(&private_display->lock);
-
- return ret;
-}
-
EXTERN tdm_error
tdm_hwc_window_set_composition_type(tdm_hwc_window *hwc_window,
tdm_hwc_window_composition composition_type)
/* LCOV_EXCL_START */
char str[TDM_PATH_LEN];
static int i;
- snprintf(str, TDM_PATH_LEN, "window_%d_%d_%03d",
- private_output->index, private_hwc_window->zpos, i++);
+ snprintf(str, TDM_PATH_LEN, "window_%d_%03d", private_output->index, i++);
tdm_helper_dump_buffer_str(buffer, tdm_debug_dump_dir, str);
/* LCOV_EXCL_STOP */
}
}
}
-/* tdm_error tdm_hwc_window_set_zpos(tdm_hwc_window *hwc_window, int32_t zpos); */
-TEST_F(TDMHwcWindow, SetZposFailNull)
-{
- error = tdm_hwc_window_set_zpos(NULL, 1);
- ASSERT_NE(TDM_ERROR_NONE, error);
-}
-
-TEST_F(TDMHwcWindow, SetZposSuccessful)
-{
- for (int i = 0; i < hwc_count; i++) {
- error = tdm_hwc_window_set_zpos(hwc_wins[i], i);
- ASSERT_EQ(TDM_ERROR_NONE, error);
- }
-}
-
/* tdm_error tdm_hwc_window_set_composition_type(tdm_hwc_window *hwc_window,
tdm_hwc_window_composition composition_type); */
TEST_F(TDMHwcWindow, SetCompositionTypeFailNull)