forked from enlightenment/enlightenment
make RENDER_DEBUG activate with E_RENDER_DEBUG env var
this is useful for debugging and the option to recompile is not always available
This commit is contained in:
parent
905607dbc1
commit
1d14c6b283
|
@ -48,11 +48,8 @@
|
||||||
/* enable along with display-specific damage INF calls to enable render tracing
|
/* enable along with display-specific damage INF calls to enable render tracing
|
||||||
* SLOW!
|
* SLOW!
|
||||||
*/
|
*/
|
||||||
#if 0
|
static Eina_Bool render_debug_enabled;
|
||||||
#define RENDER_DEBUG(...) INF(__VA_ARGS__)
|
#define RENDER_DEBUG(...) do { if (render_debug_enabled) INF(__VA_ARGS__); } while (0)
|
||||||
#else
|
|
||||||
#define RENDER_DEBUG(...)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct _E_Comp_Object
|
typedef struct _E_Comp_Object
|
||||||
{
|
{
|
||||||
|
@ -2552,6 +2549,8 @@ static void
|
||||||
_e_comp_smart_init(void)
|
_e_comp_smart_init(void)
|
||||||
{
|
{
|
||||||
if (_e_comp_smart) return;
|
if (_e_comp_smart) return;
|
||||||
|
|
||||||
|
render_debug_enabled = !!getenv("E_RENDER_DEBUG");
|
||||||
{
|
{
|
||||||
static const Evas_Smart_Class sc =
|
static const Evas_Smart_Class sc =
|
||||||
{
|
{
|
||||||
|
@ -3662,7 +3661,7 @@ e_comp_object_shape_apply(Evas_Object *obj)
|
||||||
unsigned char *spix, *sp;
|
unsigned char *spix, *sp;
|
||||||
|
|
||||||
spix = calloc(w * h, sizeof(unsigned char));
|
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++)
|
for (i = 0; i < cw->ec->shape_rects_num; i++)
|
||||||
{
|
{
|
||||||
int rx, ry, rw, rh;
|
int rx, ry, rw, rh;
|
||||||
|
|
Loading…
Reference in New Issue