On Mon, Dec 19, 2011 at 6:50 AM, Enlightenment SVN <[email protected]> wrote: > Log: > add new events for pre/post rendering
add @since, even for new members of an enum, struct, etc... Vincent > Author: raster > Date: 2011-12-18 21:50:06 -0800 (Sun, 18 Dec 2011) > New Revision: 66318 > Trac: http://trac.enlightenment.org/e/changeset/66318 > > Modified: > trunk/evas/ChangeLog trunk/evas/src/lib/Evas.h > trunk/evas/src/lib/canvas/evas_render.c > > Modified: trunk/evas/ChangeLog > =================================================================== > --- trunk/evas/ChangeLog 2011-12-18 21:30:41 UTC (rev 66317) > +++ trunk/evas/ChangeLog 2011-12-19 05:50:06 UTC (rev 66318) > @@ -566,3 +566,8 @@ > > * Add new api to set and get default event flags. > > +2011-12-19 Carsten Haitzler (The Rasterman) > + > + * Add new canvas events called just before and after evas rendering > + starts and stops. > + > > Modified: trunk/evas/src/lib/Evas.h > =================================================================== > --- trunk/evas/src/lib/Evas.h 2011-12-18 21:30:41 UTC (rev 66317) > +++ trunk/evas/src/lib/Evas.h 2011-12-19 05:50:06 UTC (rev 66318) > @@ -433,6 +433,9 @@ > */ > EVAS_CALLBACK_IMAGE_UNLOADED, /**< Image data has been unloaded (by some > mechanims in Evas that throw out original image data) */ > > + EVAS_CALLBACK_RENDER_PRE, /**< Called just before rendering starts on the > canvas target */ > + EVAS_CALLBACK_RENDER_POST, /**< Called just after rendering stops on the > canvas target */ > + > EVAS_CALLBACK_LAST /**< kept as last element/sentinel -- not really an > event */ > } Evas_Callback_Type; /**< The types of events triggering a callback */ > > > Modified: trunk/evas/src/lib/canvas/evas_render.c > =================================================================== > --- trunk/evas/src/lib/canvas/evas_render.c 2011-12-18 21:30:41 UTC (rev > 66317) > +++ trunk/evas/src/lib/canvas/evas_render.c 2011-12-19 05:50:06 UTC (rev > 66318) > @@ -1360,6 +1360,8 @@ > > RD("[--- RENDER EVAS (size: %ix%i)\n", e->viewport.w, e->viewport.h); > > + evas_event_callback_call(e, EVAS_CALLBACK_RENDER_PRE, NULL); > + > /* Check if the modified object mean recalculating every thing */ > if (!e->invalidate) > _evas_render_check_pending_objects(&e->pending_objects, e); > @@ -1686,6 +1688,8 @@ > } > > evas_module_clean(); > + > + evas_event_callback_call(e, EVAS_CALLBACK_RENDER_POST, NULL); > > RD("---]\n"); > > > > ------------------------------------------------------------------------------ > Learn Windows Azure Live! Tuesday, Dec 13, 2011 > Microsoft is holding a special Learn Windows Azure training event for > developers. It will provide a great way to learn Windows Azure and what it > provides. You can attend the event by watching it streamed LIVE online. > Learn more at http://p.sf.net/sfu/ms-windowsazure > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
