return ret;
}
-static int
-_sprd_get_number_of_visible_windows(tdm_sprd_hwc_data *hwc_data)
-{
- int number = 0;
- tdm_sprd_hwc_window_data *window = NULL;
-
- RETURN_VAL_IF_FAIL(hwc_data, 0);
-
- LIST_FOR_EACH_ENTRY(window, &hwc_data->hwc_window_list, link) {
- if (window->validated_type == TDM_HWC_WIN_COMPOSITION_NONE)
- continue;
-
- number++;
- }
-
- return number;
-}
-
static tdm_error
_sprd_hwc_prepare_commit(tdm_sprd_hwc_data *hwc_data)
{
tdm_sprd_hwc_window_data *hwc_window_data = NULL;
int osd_use = 0, img_use = 0;
- if (!_sprd_get_number_of_visible_windows(hwc_data))
- hwc_data->need_target_window = 1;
-
/* set target hwc window */
if (hwc_data->need_target_window) {
layer = _sprd_hwc_get_layer(hwc_data, 1);