e_hwc: use one large canvas 48/317248/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 27 Dec 2024 02:58:22 +0000 (11:58 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 27 Dec 2024 08:25:26 +0000 (17:25 +0900)
The multi-outputs share the one large ecore_evas(canvas) at this time.

Change-Id: I008a02f4d2c19f5c7c5c86c7a239a5daac5a012c

src/bin/displaymgr/e_hwc.c

index 4caf5d5f8b5bc507aebb4c8cd95643a847dabd5e..08f412c41f991e0a324f2a8922522051d6414cbe 100644 (file)
@@ -398,12 +398,11 @@ e_hwc_norender_get(E_Hwc *hwc)
    return hwc->norender;
 }
 
+#define USE_LARGE_ON_CANVAS 1
+
 EINTERN void
 e_hwc_canvas_size_get(E_Hwc *hwc, int *w, int *h)
 {
-   E_Hwc_Window_Target *target_hwc_window;
-   E_Canvas *canvas;
-
    if (!hwc) return;
 
    EINA_SAFETY_ON_NULL_RETURN(w);
@@ -412,12 +411,19 @@ e_hwc_canvas_size_get(E_Hwc *hwc, int *w, int *h)
    *w = 0;
    *h = 0;
 
+#if USE_LARGE_ON_CANVAS
+   ecore_evas_geometry_get(e_comp_ee_get(), NULL, NULL, w, h);
+#else
+   E_Hwc_Window_Target *target_hwc_window;
+   E_Canvas *canvas;
+
    EINA_SAFETY_ON_NULL_RETURN(hwc->root_target_hwc_window);
    target_hwc_window = hwc->root_target_hwc_window;
    EINA_SAFETY_ON_NULL_RETURN(target_hwc_window->canvas);
    canvas = target_hwc_window->canvas;
 
    e_canvas_size_get(canvas, w, h);
+#endif
 }
 
 static const char *