From 6294f45f843f07754c4e329bac4c06599c28daca Mon Sep 17 00:00:00 2001 From: Shawn Lee Date: Mon, 5 Aug 2013 20:26:47 +0900 Subject: [PATCH] Added DLOG message for rotation event. Change-Id: I683bda34a4baf2c8ed976d5052c8307669bf139e --- configure.ac | 5 ++++- src/bin/e.h | 6 ++++++ src/bin/e_border.c | 14 ++++++++++++++ src/bin/e_zone.c | 8 ++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 35ca944..6145210 100644 --- a/configure.ac +++ b/configure.ac @@ -544,7 +544,8 @@ PKG_CHECK_MODULES(E, [ $hal_mount $eeze_mount $udisks_mount - $device_backend + $device_backend, + dlog ]) requirements_e="\ evas >= 1.2.0 \ @@ -645,6 +646,8 @@ e_extra_features+="-D_F_TRANSIENT_FOR_PATCH_ " e_extra_features+="-D_F_BORDER_HOOK_PATCH_ " # add multi-layer feature of the compositor e_extra_features+="-D_F_COMP_LAYER_ " +# add use dlog +e_extra_features+="-D_F_USE_DLOG_ " have_extra_features=no AC_ARG_ENABLE(extra_features, diff --git a/src/bin/e.h b/src/bin/e.h index dc2cafe..8ad5e0d 100644 --- a/src/bin/e.h +++ b/src/bin/e.h @@ -45,6 +45,12 @@ void *alloca(size_t); # include # endif +# ifdef _F_USE_DLOG_ +# include "dlog.h" +# undef LOG_TAG +# define LOG_TAG "E17" +# endif + # include # include # include diff --git a/src/bin/e_border.c b/src/bin/e_border.c index b1f5316..d7af01d 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -8187,6 +8187,12 @@ _e_border_rotation_list_flush(Eina_List *list, Eina_Bool flush) "SEND ROT_CHANGE_PREPARE a%d res%d %dx%d", info->ang, info->win_resize, info->w, info->h); +#ifdef _F_USE_DLOG_ + SECURE_SLOGD("[ROTATION] SEND PREP_ROT, win:0x%08x a%d resize%d %dx%d", + info->bd->client.win, info->ang, info->win_resize, + info->w, info->h); +#endif + ecore_x_e_window_rotation_change_prepare_send (info->bd->client.win, info->ang, info->win_resize, info->w, info->h); @@ -8194,6 +8200,10 @@ _e_border_rotation_list_flush(Eina_List *list, Eina_Bool flush) if (!info->bd->client.e.state.rot.pending_change_request) { ELBF(ELBT_ROT, 1, 0, "SEND ROT_CHANGE_REQUEST"); +#ifdef _F_USE_DLOG_ + SECURE_SLOGD("[ROTATION] SEND REQ_ROT, win:0x%08x, rot:%d", + info->bd->client.win, info->ang); +#endif ecore_x_e_window_rotation_change_request_send(info->bd->client.win, info->ang); info->bd->client.e.state.rot.wait_for_done = 1; @@ -8994,6 +9004,10 @@ _e_border_cb_window_configure(void *data __UNUSED__, "SEND ROT_CHANGE_REQUEST a%d %dx%d", bd->client.e.state.rot.curr, bd->w, bd->h); +#ifdef _F_USE_DLOG_ + SECURE_SLOGD("[ROTATION] SEND REQ_ROT(CONFIGURE_NOTI), win:0x%08x, rot:%d", + bd->client.win, bd->client.e.state.rot.curr); +#endif ecore_x_e_window_rotation_change_request_send(bd->client.win, bd->client.e.state.rot.curr); bd->client.e.state.rot.wait_for_done = 1; diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c index ad28784..5098829 100644 --- a/src/bin/e_zone.c +++ b/src/bin/e_zone.c @@ -1433,6 +1433,14 @@ e_zone_rotation_set(E_Zone *zone, E_OBJECT_CHECK(zone); E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE); + +#ifdef _F_USE_DLOG_ + SECURE_SLOGD("[ROTATION] ZONE_ROT_SET, wm_win_rotation_set:%d, wait_for_done:%d, block_count:%d, " + "curr_rot:%d, req_rot:%d", + e_config->wm_win_rotation, zone->rot.wait_for_done, zone->rot.block_count, + zone->rot.curr, rot); +#endif + if (!e_config->wm_win_rotation) return; ELBF(ELBT_ROT, 0, zone->num, "SET ROT a%d", rot); -- 2.7.4