add timeout logs (1000ms)
[platform/core/uifw/libtdm.git] / src / tdm_hwc_window.c
index 88a8e9d..40820ce 100644 (file)
 #include "config.h"
 #endif
 
-#include "tdm.h"
-#include "tdm_backend.h"
 #include "tdm_private.h"
-#include "tdm_helper.h"
 
 #define COUNT_MAX   10
 
@@ -104,7 +101,7 @@ tdm_hwc_window_get_tbm_buffer_queue(tdm_hwc_window *hwc_window, tdm_error *error
 }
 
 EXTERN tdm_error
-tdm_hwc_window_set_zpos(tdm_hwc_window *hwc_window, uint32_t zpos)
+tdm_hwc_window_set_zpos(tdm_hwc_window *hwc_window, int32_t zpos)
 {
        tdm_func_hwc_window *func_hwc_window = NULL;
 
@@ -139,7 +136,7 @@ tdm_hwc_window_set_composition_type(tdm_hwc_window *hwc_window,
 
        HWC_WINDOW_FUNC_ENTRY();
        TDM_RETURN_VAL_IF_FAIL(composition_type >= TDM_COMPOSITION_NONE, TDM_ERROR_INVALID_PARAMETER);
-       TDM_RETURN_VAL_IF_FAIL(composition_type <= TDM_COMPOSITION_CURSOR, TDM_ERROR_INVALID_PARAMETER);
+       TDM_RETURN_VAL_IF_FAIL(composition_type <= TDM_COMPOSITION_VIDEO, TDM_ERROR_INVALID_PARAMETER);
 
        _pthread_mutex_lock(&private_display->lock);
 
@@ -240,7 +237,7 @@ _tdm_window_dump_buffer(tdm_hwc_window *hwc_window, tbm_surface_h buffer)
        tdm_private_output *private_output = private_window->private_output;
        unsigned int pipe;
        uint32_t zpos;
-       char fname[PATH_MAX];
+       char fname[TDM_PATH_LEN];
 
        pipe = private_output->pipe;
        zpos = private_window->zpos;