ecore_drm2: Remove ecore_drm2_output_crtc_size_get()
authorDerek Foreman <derekf@osg.samsung.com>
Tue, 8 Aug 2017 17:03:12 +0000 (12:03 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Wed, 9 Aug 2017 19:56:59 +0000 (14:56 -0500)
Replaced with ecore_drm2_output_info_get()

src/lib/ecore_drm2/Ecore_Drm2.h
src/lib/ecore_drm2/ecore_drm2_outputs.c
src/modules/ecore_evas/engines/drm/ecore_evas_drm.c

index d979881..ea87c19 100644 (file)
@@ -516,18 +516,6 @@ EAPI unsigned int ecore_drm2_output_crtc_get(Ecore_Drm2_Output *output);
 EAPI Ecore_Drm2_Fb *ecore_drm2_output_latest_fb_get(Ecore_Drm2_Output *output);
 
 /**
- * Get the size of the crtc for a given output
- *
- * @param output
- * @param *w
- * @param *h
- *
- * @ingroup Ecore_Drm2_Output_Group
- * @since 1.18
- */
-EAPI void ecore_drm2_output_crtc_size_get(Ecore_Drm2_Output *output, int *w, int *h);
-
-/**
  * Get if a given output is marked as the primary output
  *
  * @param output
index 7cf8198..4e7db92 100644 (file)
@@ -1146,25 +1146,6 @@ ecore_drm2_output_latest_fb_get(Ecore_Drm2_Output *output)
    return output->next.fb;
 }
 
-EAPI void
-ecore_drm2_output_crtc_size_get(Ecore_Drm2_Output *output, int *w, int *h)
-{
-   drmModeCrtcPtr crtc;
-
-   if (w) *w = 0;
-   if (h) *h = 0;
-
-   EINA_SAFETY_ON_NULL_RETURN(output);
-
-   crtc = sym_drmModeGetCrtc(output->fd, output->crtc_id);
-   if (!crtc) return;
-
-   if (w) *w = crtc->width;
-   if (h) *h = crtc->height;
-
-   sym_drmModeFreeCrtc(crtc);
-}
-
 EAPI Eina_Bool
 ecore_drm2_output_primary_get(Ecore_Drm2_Output *output)
 {
index 6d031da..f2da72f 100644 (file)
@@ -940,7 +940,7 @@ _ecore_evas_new_internal(const char *device, int x, int y, int w, int h, Eina_Bo
                                (Ecore_Event_Multi_Up_Cb)_ecore_evas_mouse_multi_up_process);
    _ecore_event_window_direct_cb_set(ee->prop.window, _ecore_evas_input_direct_cb);
 
-   ecore_drm2_output_crtc_size_get(edata->output, &mw, &mh);
+   ecore_drm2_output_info_get(edata->output, NULL, NULL, &mw, &mh, NULL);
 
    ecore_drm2_device_calibrate(edata->dev, mw, mh);
    ecore_drm2_device_pointer_max_set(edata->dev, mw, mh);