use tdm_layer_commit instead of tdm_output_commit 45/112745/1
authorBoram Park <boram1288.park@samsung.com>
Mon, 26 Dec 2016 05:42:44 +0000 (14:42 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 2 Feb 2017 11:36:22 +0000 (20:36 +0900)
Change-Id: I493a824e86639d746941cee2fce66c78b5afbd06

src/e_mod_main.c

index b136010..6b7191c 100644 (file)
@@ -564,7 +564,7 @@ _e_eom_cb_pp(tbm_surface_h surface, void *user_data)
 }
 
 static void
-_e_eom_cb_commit(tdm_output *output EINA_UNUSED, unsigned int sequence EINA_UNUSED,
+_e_eom_cb_commit(tdm_layer *layer EINA_UNUSED, unsigned int sequence EINA_UNUSED,
                            unsigned int tv_sec EINA_UNUSED, unsigned int tv_usec EINA_UNUSED,
                            void *user_data)
 {
@@ -590,7 +590,7 @@ _e_eom_cb_commit(tdm_output *output EINA_UNUSED, unsigned int sequence EINA_UNUS
 
         RETURNIFTRUE(err != TDM_ERROR_NONE, "commit event: mirror: set buffer 0 err:%d", err);
 
-        err = tdm_output_commit(eom_output->output, 0, _e_eom_cb_commit, eom_output);
+        err = tdm_layer_commit(eom_output->layer, _e_eom_cb_commit, eom_output);
         RETURNIFTRUE(err != TDM_ERROR_NONE, "commit event: mirror: commit err:%d", err);
      }
    else if (eom_output->state == PRESENTATION)
@@ -633,7 +633,7 @@ _e_eom_cb_commit(tdm_output *output EINA_UNUSED, unsigned int sequence EINA_UNUS
         err = tdm_layer_set_buffer(eom_output->layer, external_buffer);
         RETURNIFTRUE(err != TDM_ERROR_NONE, "commit event: presentation: set buffer");
 
-        err = tdm_output_commit(eom_output->output, 0, _e_eom_cb_commit, eom_output);
+        err = tdm_layer_commit(eom_output->layer, _e_eom_cb_commit, eom_output);
         RETURNIFTRUE(err != TDM_ERROR_NONE, "commit event: presentation: commit err:%d", err);
 
         EOM_DBG("COMMIT <+++++++++++++++");
@@ -1316,7 +1316,7 @@ _e_eom_output_start_mirror(E_EomOutputPtr eom_output)
    ret = _e_eom_output_start_pp(eom_output);
    GOTOIFTRUE(ret == EINA_FALSE, err, "Get root surfcae");
 
-   tdm_err = tdm_output_commit(eom_output->output, 0, _e_eom_cb_commit, eom_output);
+   tdm_err = tdm_layer_commit(eom_output->layer, _e_eom_cb_commit, eom_output);
    GOTOIFTRUE(tdm_err != TDM_ERROR_NONE, err, "Commit crtc:%d", tdm_err);
 
    _e_eom_output_state_set_mode(eom_output, EOM_OUTPUT_MODE_MIRROR);
@@ -1382,7 +1382,7 @@ _e_eom_output_deinit(E_EomOutputPtr eom_output, int pp)
         if (err != TDM_ERROR_NONE)
           EOM_DBG("fail unset buffer:%d", err);
 
-        err = tdm_output_commit(eom_output->output, 0, NULL, eom_output);
+        err = tdm_layer_commit(eom_output->layer, NULL, eom_output);
         if (err != TDM_ERROR_NONE)
           EOM_DBG ("fail commit:%d", err);
     }