ecore-drm2: Rename output_fb_release to just fb_release
authorChris Michael <cp.michael@samsung.com>
Fri, 9 Sep 2016 19:08:40 +0000 (15:08 -0400)
committerChris Michael <cp.michael@samsung.com>
Fri, 9 Sep 2016 19:10:47 +0000 (15:10 -0400)
As this function releases FBOs on a given output, lets just shorten
the API function name so it can stay grouped into the ecore_drm2_fb.c
file ... leaving it as ecore_drm2_output_fb_release reads like it
should have gone into the ecore_drm2_output.c file...

NB: No real function changes here, just an API rename.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm2/Ecore_Drm2.h
src/lib/ecore_drm2/ecore_drm2_fb.c
src/modules/evas/engines/gl_drm/evas_outbuf.c

index a1c5a5b..209453e 100644 (file)
@@ -800,6 +800,20 @@ EAPI Eina_Bool ecore_drm2_fb_busy_get(Ecore_Drm2_Fb *fb);
 EAPI void ecore_drm2_fb_busy_set(Ecore_Drm2_Fb *fb, Eina_Bool busy);
 
 /**
+ * Try to force a framebuffer release for an output
+ *
+ * This tries to release the next, pending, or current buffer from
+ * the output.  If successful there will be a release callback to
+ * the registered handler, and the fb will no longer be flagged busy.
+ *
+ * @param output The output to force release
+ *
+ * @ingroup Ecore_Drm2_Fb_Group
+ * @since 1.19
+ */
+EAPI void ecore_drm2_fb_release(Ecore_Drm2_Output *o);
+
+/**
  * Set the user data for the output's page flip handler
  *
  * @param output The output to update user data for
@@ -825,20 +839,6 @@ EAPI void ecore_drm2_output_user_data_set(Ecore_Drm2_Output *o, void *data);
 EAPI void ecore_drm2_output_release_handler_set(Ecore_Drm2_Output *output, Ecore_Drm2_Release_Handler handler, void *data);
 
 /**
- * Try to force a framebuffer release for an output
- *
- * This tries to release the next, pending, or current buffer from
- * the output.  If successful there will be a release callback to
- * the registered handler, and the fb will no longer be flagged busy.
- *
- * @param output The output to force release
- *
- * @ingroup Ecore_Drm2_Output_Group
- * @since 1.19
- */
-EAPI void ecore_drm2_output_fb_release(Ecore_Drm2_Output *o);
-
-/**
  * Get the Framebuffer's gbm buffer object
  *
  * @param fb The framebuffer to query
index 14f85c8..fc40a8e 100644 (file)
@@ -334,7 +334,7 @@ ecore_drm2_fb_busy_set(Ecore_Drm2_Fb *fb, Eina_Bool busy)
 }
 
 EAPI void
-ecore_drm2_output_fb_release(Ecore_Drm2_Output *o)
+ecore_drm2_fb_release(Ecore_Drm2_Output *o)
 {
    EINA_SAFETY_ON_NULL_RETURN(o);
 
index 0823aff..6515b80 100644 (file)
@@ -96,7 +96,7 @@ _evas_outbuf_buffer_swap(Outbuf *ob)
    bo = gbm_surface_lock_front_buffer(ob->surface);
    if (!bo)
      {
-        ecore_drm2_output_fb_release(ob->priv.output);
+        ecore_drm2_fb_release(ob->priv.output);
         bo = gbm_surface_lock_front_buffer(ob->surface);
      }
    if (bo) fb = _evas_outbuf_fb_get(ob, bo);