[cairo] [PATCH 22/39] [OpenVG] Added define to enable/disable use of mask (ShivaVG doesn't support vgMask yet)

tardyp at gmail.com tardyp at gmail.com
Fri Jul 10 10:02:24 PDT 2009


From: Øyvind Kolås <pippin at gimp.org>

---
 src/cairo-openvg-surface.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/cairo-openvg-surface.c b/src/cairo-openvg-surface.c
index f4d1614..f33d834 100644
--- a/src/cairo-openvg-surface.c
+++ b/src/cairo-openvg-surface.c
@@ -39,6 +39,8 @@
 #include "cairo-path-fixed-private.h"
 #include <vg/openvg.h>
 
+#define ENABLE_MASK
+
 typedef struct cairo_openvg_surface {
     cairo_surface_t base;
     cairo_content_t content;
@@ -86,10 +88,11 @@ _cairo_openvg_surface_intersect_clip_path (void               *asurface,
                                            cairo_antialias_t   antialias)
 {
   cairo_status_t status = CAIRO_STATUS_SUCCESS;
+#ifdef ENABLE_MASK
   cairo_openvg_surface_t *vgsurface = asurface;
-  cairo_surface_t *image;
-  cairo_t               *cr;
-  cairo_pattern_t       *filled;
+  cairo_surface_t        *image;
+  cairo_t                *cr;
+  cairo_pattern_t        *filled;
 
   if (path == NULL)
     {
@@ -146,6 +149,7 @@ _cairo_openvg_surface_intersect_clip_path (void               *asurface,
   cairo_destroy (cr);
   
   cairo_surface_destroy (image);
+#endif
   return status;
 }
 
-- 
1.6.0.4



More information about the cairo mailing list