aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_comp_object.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-07 16:26:32 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-07 16:26:28 -0400
commitb008dce0a0a5d48f60945bdcef30546bab4e6bb7 (patch)
treef6d239edde8861c914bc64b2d27c6231c5492a16 /src/bin/e_comp_object.c
parentCpuclock: Fix sysinfo cpuclock theme name. (diff)
downloadenlightenment-b008dce0a0a5d48f60945bdcef30546bab4e6bb7.tar.gz
add "focus" mode for render debug
Diffstat (limited to 'src/bin/e_comp_object.c')
-rw-r--r--src/bin/e_comp_object.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index c09b91b93..cf53c8020 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -48,8 +48,8 @@
/* enable along with display-specific damage INF calls to enable render tracing
* SLOW!
*/
-static Eina_Bool render_debug_enabled;
-#define RENDER_DEBUG(...) do { if (render_debug_enabled) INF(__VA_ARGS__); } while (0)
+static int render_debug_enabled;
+#define RENDER_DEBUG(...) do { if ((render_debug_enabled == 1) || ((render_debug_enabled == -1) && cw->ec->focused)) INF(__VA_ARGS__); } while (0)
typedef struct _E_Comp_Object
{
@@ -2605,9 +2605,14 @@ _e_comp_smart_resize(Evas_Object *obj, int w, int h)
static void
_e_comp_smart_init(void)
{
+ const char *env;
if (_e_comp_smart) return;
- render_debug_enabled = !!getenv("E_RENDER_DEBUG");
+ env = getenv("E_RENDER_DEBUG");
+ if (eina_streq(env, "focus"))
+ render_debug_enabled = -1;
+ else if (env)
+ render_debug_enabled = 1;
{
static const Evas_Smart_Class sc =
{