e_hwc_windows: remove redundant member 94/272994/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 28 Mar 2022 11:05:30 +0000 (20:05 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 29 Mar 2022 10:22:20 +0000 (19:22 +0900)
Change-Id: I1cadc4902a9b9053a3b7074a0510c494229cd076

src/bin/e_hwc.h
src/bin/e_hwc_windows.c

index ceeec24..f514f48 100644 (file)
@@ -165,7 +165,6 @@ struct _E_Hwc
    Eina_Bool             pp_set;
    Eina_Bool             pp_commit;
    Eina_Rectangle        pp_src_rect, pp_dst_rect;
-   Eina_Rectangle        pp_set_src_rect, pp_set_dst_rect;
    int                   pp_minw, pp_minh, pp_maxw, pp_maxh;
    int                   pp_align;
    int                   pp_align_vertical;
index e006c7a..bc560dc 100644 (file)
@@ -1893,10 +1893,6 @@ _e_hwc_windows_pp_info_set(E_Hwc *hwc, tbm_surface_h src, tbm_surface_h dst,
    tdm_error ret = TDM_ERROR_NONE;
    unsigned int aligned_width_src = 0, aligned_width_dst = 0;
 
-   if ((!memcmp(&hwc->pp_set_src_rect, src_rect, sizeof(Eina_Rectangle))) &&
-       (!memcmp(&hwc->pp_set_dst_rect, dst_rect, sizeof(Eina_Rectangle))))
-      return EINA_TRUE;
-
    aligned_width_src = e_comp_wl_tbm_aligned_width_get(src);
    EINA_SAFETY_ON_FALSE_RETURN_VAL(aligned_width_src != 0, EINA_FALSE);
 
@@ -3744,8 +3740,6 @@ e_hwc_windows_pp_unset(E_Hwc *hwc)
 
    CLEAR(hwc->pp_src_rect);
    CLEAR(hwc->pp_dst_rect);
-   CLEAR(hwc->pp_set_src_rect);
-   CLEAR(hwc->pp_set_dst_rect);
 
    hwc->pp_hwc_window = NULL;
    hwc->pp_set = EINA_FALSE;