From: caro Date: Sat, 21 Feb 2009 08:18:53 +0000 (+0000) Subject: make gl engine able to use cutouts - in some cases its faster, some X-Git-Tag: submit/trunk/20120815.174732~3474 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=853b616cedc715d11f0cf533b368f223e388cca9;p=profile%2Fivi%2Fevas.git make gl engine able to use cutouts - in some cases its faster, some slower. it's a mixed bag. not sure what to make of it. it's #defined to be disabled atm. (synchronize with gl_x11 code) git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@39116 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/engines/gl_glew/evas_engine.c b/src/modules/engines/gl_glew/evas_engine.c index 2f916c2..bfa269b 100644 --- a/src/modules/engines/gl_glew/evas_engine.c +++ b/src/modules/engines/gl_glew/evas_engine.c @@ -288,7 +288,10 @@ eng_context_cutout_add(void *data, void *context, int x, int y, int w, int h) Render_Engine *re; re = (Render_Engine *)data; - /* not used in gl engine */ +#ifndef EVAS_GL_COMMON_NOCUTOUTS + re->window->gl_context->dc = context; + evas_common_draw_context_add_cutout(context, x, y, w, h); +#endif } static void @@ -297,7 +300,10 @@ eng_context_cutout_clear(void *data, void *context) Render_Engine *re; re = (Render_Engine *)data; - /* not used in gl engine */ +#ifndef EVAS_GL_COMMON_NOCUTOUTS + re->window->gl_context->dc = context; + evas_common_draw_context_clear_cutouts(context); +#endif } static void