Author: Carlos Lopez <genet...@gmail.com> Date: Thu Jul 5 19:35:31 2012 +0200
New strategy, several changes: 1) Temporarily disable new Layer_CairoBitmap class. It needs some rectifications according the new strategy. 2) Remove cariosurface_target class since it is not needed with the new strategy. 3) New virtual bool Target_Cairo::obtain_surface(cairo_surface_t*)=0; It accepts a cairo_surface_t pointer and fills it up with the cairo_surface_t address from the specific target instance. This function should also do the needed tasks to prepare the device to receive a new surface on it. 4) New virtual bool Target_Cairo::put_surface(cairo_surface_t*); It accepts a cairo_surface_t and transfers it to the device. It is virtual so the target instance can make different things depending on the device needs. It is provided a basic one. cairo_surface_t has to be destroyed there. 5) Context and Layer accelerated_cairorender members now receives a cairo_context_t instead a CairoSurface. 6) New synfig::cairorender global function that renders a Context on a cairo_surface_t. It creates a CairoSurface to access the underlying pixels. After that it is returned to the cairo_surface_t --- synfig-core/src/synfig/Makefile.am | 2 - synfig-core/src/synfig/context.cpp | 286 +++++++++++++++++++++++++++++++ synfig-core/src/synfig/context.h | 151 +---------------- synfig-core/src/synfig/layer.cpp | 16 +-- synfig-core/src/synfig/layer.h | 5 +- synfig-core/src/synfig/render.cpp | 33 ++--- synfig-core/src/synfig/render.h | 5 +- synfig-core/src/synfig/surface.cpp | 64 ------- synfig-core/src/synfig/surface.h | 1 - synfig-core/src/synfig/target_cairo.cpp | 28 +-- synfig-core/src/synfig/target_cairo.h | 16 +-- 11 files changed, 325 insertions(+), 282 deletions(-) Diff: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commitdiff;h=623fab0ec6431940f722b5df5cad946c7eb3ea70 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl