Added DLOG message for rotation event. 45/9745/1
authorShawn Lee <shiin.lee@samsung.com>
Mon, 5 Aug 2013 11:26:47 +0000 (20:26 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 5 Aug 2013 12:42:16 +0000 (12:42 +0000)
Change-Id: I683bda34a4baf2c8ed976d5052c8307669bf139e

configure.ac
src/bin/e.h
src/bin/e_border.c
src/bin/e_zone.c

index 35ca944..6145210 100644 (file)
@@ -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,
index dc2cafe..8ad5e0d 100644 (file)
@@ -45,6 +45,12 @@ void *alloca(size_t);
 #  include <features.h>
 # endif
 
+# ifdef _F_USE_DLOG_
+#  include "dlog.h"
+#  undef LOG_TAG
+#  define LOG_TAG "E17"
+# endif
+
 # include <stdio.h>
 # include <stdlib.h>
 # include <unistd.h>
index b1f5316..d7af01d 100644 (file)
@@ -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;
index ad28784..5098829 100644 (file)
@@ -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);