make frameinfo work on env var. export DFI=1

SVN revision: 46461
This commit is contained in:
Carsten Haitzler 2010-02-25 12:37:28 +00:00
parent 4513a24797
commit 5ffdd6a06a
1 changed files with 48 additions and 41 deletions

View File

@ -88,7 +88,7 @@ struct _E_Comp_Win
Eina_Bool drawme : 1; // drawme flag fo syncing rendering
Eina_Bool invalid : 1; // invalid depth used - just use as marker
Eina_Bool defer_hide : 1; // flag to get hide to work on deferred hide
Eina_Bool delete_me : 1;
Eina_Bool delete_me : 1; // delete me!
};
static Eina_List *handlers = NULL;
@ -651,6 +651,7 @@ _e_mod_comp_cb_update(E_Comp *c)
E_Comp_Win *cw;
Eina_List *new_updates = NULL; // for failed pixmap fetches - get them next frame
Eina_List *update_done = NULL;
static int doframeinfo = -1;
if (_comp_mod->conf->grab)
{
@ -700,6 +701,12 @@ _e_mod_comp_cb_update(E_Comp *c)
c->render_overflow--;
c->update_job = NULL;
if (doframeinfo == -1)
{
doframeinfo = 0;
if (getenv("DFI")) doframeinfo = 1;
}
if (doframeinfo)
{
static double t0 = 0.0;
double td, t;