hwc: remove _sprd_get_number_of_visible_windows 02/193202/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 15 Nov 2018 07:18:51 +0000 (16:18 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 15 Nov 2018 07:18:51 +0000 (16:18 +0900)
Change-Id: Ie31fb9c5563e27e4b9fa4b95e8ce7aa3af263cac

src/tdm_sprd_hwc.c

index 2f6b0e2..da77a8f 100644 (file)
@@ -169,24 +169,6 @@ _sprd_hwc_layer_attach_window(tdm_sprd_layer_data *layer_data, tdm_sprd_hwc_wind
        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)
 {
@@ -194,9 +176,6 @@ _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);