added code to enable shots capturing of ecore_evas and evas examples

Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, tasn

Reviewed By: tasn

Differential Revision: https://phab.enlightenment.org/D2082
This commit is contained in:
kabeer khan 2015-03-04 15:00:05 +00:00 committed by Tom Hacohen
parent 450d2888eb
commit 079dbb6dd5
1 changed files with 15 additions and 0 deletions

View File

@ -331,6 +331,21 @@ evas_new(void)
return evas;
}
EAPI Ecore_Evas *
ecore_evas_new(const char *engine_name, int x, int y,
int w, int h, const char *extra_options)
{
Ecore_Evas *ecore_evas;
Ecore_Evas * (*_ecore_evas_new)(const char *engine_name, int x, int y,
int w, int h, const char *extra_options) = dlsym(RTLD_NEXT, __FUNCTION__);
if(!_hook_setting->recording)
ecore_evas = _ecore_evas_new("buffer", x, y, w, h, extra_options);
else
ecore_evas = _ecore_evas_new(engine_name, x, y, w, h, extra_options);
return ecore_evas;
}
static Eina_Bool
tsuite_feed_event(void *data)
{