diff include/mb_graph_engine_cairo.h @ 603:39d27911c3ae openvg

Remove mbe_image_surface_create_for_data()
author Thinker K.F. Li <thinker@branda.to>
date Sun, 04 Jul 2010 00:16:43 +0800
parents ac2e6468a22a
children bd18951b51d5
line wrap: on
line diff
--- a/include/mb_graph_engine_cairo.h	Fri Jul 02 13:42:22 2010 +0800
+++ b/include/mb_graph_engine_cairo.h	Sun Jul 04 00:16:43 2010 +0800
@@ -137,33 +137,6 @@
     return scaled;
 }
 
-static mbe_surface_t *
-mbe_image_surface_create_for_data(unsigned char *data,
-				  mb_img_fmt_t fmt,
-				  int width, int height,
-				  int stride) {
-    cairo_format_t _fmt;
-    
-    switch(fmt) {
-    case MB_IFMT_ARGB32:
-	_fmt = CAIRO_FORMAT_ARGB32;
-	break;
-    case MB_IFMT_RGB24:
-	_fmt = CAIRO_FORMAT_RGB24;
-	break;
-    case MB_IFMT_A8:
-	_fmt = CAIRO_FORMAT_A8;
-	break;
-    case MB_IFMT_A1:
-	_fmt = CAIRO_FORMAT_A1;
-	break;
-    default:
-	return NULL;
-    }
-    return cairo_image_surface_create_for_data(data, _fmt,
-					       width, height, stride);
-}
-
 static mb_img_fmt_t
 mbe_image_surface_get_format(mbe_surface_t *surface) {
     cairo_format_t _fmt;