discomfitor pushed a commit to branch enlightenment-0.21. http://git.enlightenment.org/core/enlightenment.git/commit/?id=1d14c6b283e22ac7846fbdcd7a540527e95724f0
commit 1d14c6b283e22ac7846fbdcd7a540527e95724f0 Author: Mike Blumenkrantz <[email protected]> Date: Fri Apr 14 11:48:49 2017 -0400 make RENDER_DEBUG activate with E_RENDER_DEBUG env var this is useful for debugging and the option to recompile is not always available --- src/bin/e_comp_object.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index 3faffe7..ac532c1 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -48,11 +48,8 @@ /* enable along with display-specific damage INF calls to enable render tracing * SLOW! */ -#if 0 -#define RENDER_DEBUG(...) INF(__VA_ARGS__) -#else -#define RENDER_DEBUG(...) -#endif +static Eina_Bool render_debug_enabled; +#define RENDER_DEBUG(...) do { if (render_debug_enabled) INF(__VA_ARGS__); } while (0) typedef struct _E_Comp_Object { @@ -2552,6 +2549,8 @@ static void _e_comp_smart_init(void) { if (_e_comp_smart) return; + + render_debug_enabled = !!getenv("E_RENDER_DEBUG"); { static const Evas_Smart_Class sc = { @@ -3662,7 +3661,7 @@ e_comp_object_shape_apply(Evas_Object *obj) unsigned char *spix, *sp; spix = calloc(w * h, sizeof(unsigned char)); - DBG("SHAPE [%p] rects %i", cw->ec, cw->ec->shape_rects_num); + RENDER_DEBUG("SHAPE [%p] rects %i", cw->ec, cw->ec->shape_rects_num); for (i = 0; i < cw->ec->shape_rects_num; i++) { int rx, ry, rw, rh; --
