tizen 2.4 release
[framework/uifw/e17-mod-tizen-comp.git] / src / e_mod_comp_debug.h
1 #ifdef E_TYPEDEFS
2 #else
3 #ifndef E_MOD_COMP_DEBUG_H
4 #define E_MOD_COMP_DEBUG_H
5
6 #define E_CHECK(x)           do {if (!(x)) return;    } while(0)
7 #define E_CHECK_RETURN(x, r) do {if (!(x)) return (r);} while(0)
8 #define E_CHECK_GOTO(x, l)   do {if (!(x)) goto l;    } while(0)
9
10 #define COMP_DEBUG_PIXMAP 0
11
12 #if COMP_DEBUG_PIXMAP
13 EAPI Ecore_X_Pixmap e_mod_comp_debug_name_window_pixmap_get(Ecore_X_Window w, const char *f, const int l);
14
15 #define ecore_x_composite_name_window_pixmap_get(w)                    \
16    e_mod_comp_debug_name_window_pixmap_get(w, __func__, __LINE__)
17
18 #define ecore_x_pixmap_free(p) {                                       \
19    ecore_x_pixmap_free(p);                                             \
20    fprintf(stderr,                                                     \
21            "[COMP] %30.30s|%04d 0x%08x FREE PIXMAP 0x%x\n",            \
22            __func__, __LINE__, e_mod_comp_util_client_xid_get(cw), p); \
23 }
24 #endif /* COMP_DEBUG_PIXMAP */
25
26 /* TODO: clean up nocomp logic */
27 #define USE_NOCOMP_DISPOSE 0
28 #define USE_SHADOW 0
29 #define MOVE_IN_EFFECT 0
30 #define DEBUG_HWC_COLOR 0
31 #define DEBUG_HWC 1
32 #define OPTIMIZED_HWC_MOBILE 1
33 #define HWC_ROTATION_PATCH 0
34 #define SEND_LAUNCHING_DONE 1
35
36 EAPI Eina_Bool e_mod_comp_debug_info_dump(Eina_Bool to_file, const char *name);
37 EAPI Eina_Bool e_mod_comp_debug_edje_error_get(Evas_Object *o, Ecore_X_Window win);
38 EAPI Eina_Bool e_mod_comp_debug_prop_handle(Ecore_X_Event_Window_Property *ev);
39
40 #endif
41 #endif