e_hwc: get output available size in hwc_new 05/306205/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 18 Jan 2024 04:43:53 +0000 (13:43 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 19 Feb 2024 04:12:41 +0000 (13:12 +0900)
Change-Id: I21232629094eea0f2d1ccc661bda6d1a20afac63

src/bin/e_hwc.c
src/include/e_hwc.h

index 575377a..6766977 100644 (file)
@@ -597,6 +597,13 @@ e_hwc_new(E_Output *output, Eina_Bool primary_output)
           hwc->tdm_hwc_fence = EINA_TRUE;
      }
 
+   tdm_output_get_available_size(output->toutput,
+                                 &hwc->output_available.min_w,
+                                 &hwc->output_available.min_h,
+                                 &hwc->output_available.max_w,
+                                 &hwc->output_available.max_h,
+                                 NULL);
+
    /* set the pirmary_output */
    hwc->primary_output = primary_output;
 
index a6abc74..7ac3a85 100644 (file)
@@ -167,6 +167,14 @@ struct _E_Hwc
    int                  gbm_format;
 
    E_Hwc_Window        *below_transparent_window;
+
+   struct
+   {
+      int               min_w;
+      int               min_h;
+      int               max_w;
+      int               max_h;
+   } output_available;
 };
 
 E_API extern int E_EVENT_HWC_ACTIVE;