Author: Carlos Lopez <[email protected]>
Date:   Tue Aug 14 20:09:12 2012 +0200

Outline: basic support for Cairo render as polygon

---

 synfig-core/src/modules/mod_geometry/outline.cpp |    8 ++++++++
 synfig-core/src/modules/mod_geometry/outline.h   |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/synfig-core/src/modules/mod_geometry/outline.cpp 
b/synfig-core/src/modules/mod_geometry/outline.cpp
index 78fed6a..8dc81a9 100644
--- a/synfig-core/src/modules/mod_geometry/outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/outline.cpp
@@ -401,6 +401,7 @@ Outline::sync()
        }
 
        add_polygon(side_a);
+       Layer_Polygon::upload_polygon(side_a);
 
 
 #else /* 1 */
@@ -861,3 +862,10 @@ Outline::get_param_vocab()const
 
        return ret;
 }
+
+
+bool
+Outline::accelerated_cairorender(Context context,cairo_surface_t *surface,int 
quality, const RendDesc &renddesc, ProgressCallback *cb)const
+{
+       return Layer_Polygon::accelerated_cairorender(context, surface, 
quality, renddesc, cb);
+}
diff --git a/synfig-core/src/modules/mod_geometry/outline.h 
b/synfig-core/src/modules/mod_geometry/outline.h
index bf1a54f..c07a767 100644
--- a/synfig-core/src/modules/mod_geometry/outline.h
+++ b/synfig-core/src/modules/mod_geometry/outline.h
@@ -86,7 +86,7 @@ public:
        virtual void set_time(Context context, Time time, Vector pos)const;
        virtual bool set_version(const String 
&ver){if(ver=="0.1")old_version=true; return true;}
        virtual void reset_version(){old_version=false;}
-
+       virtual bool accelerated_cairorender(Context context,cairo_surface_t 
*surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
 };
 
 /* === E N D =============================================================== */


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to