[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo-commit
Subject:    [cairo-commit] goocanvas/demo mv-scalability-demo.c, 1.3,
From:       Damon Chaplin <commit () pdx ! freedesktop ! org>
Date:       2007-04-25 13:24:47
Message-ID: 20070425132447.C14F19EA52 () gabe ! freedesktop ! org
[Download RAW message or body]

Committed by: damon

Update of /cvs/cairo/goocanvas/demo
In directory kemper:/tmp/cvs-serv16639/demo

Modified Files:
	mv-scalability-demo.c scalability-demo.c 
Log Message:
2007-04-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.c (_goo_canvas_item_model_emit_child_added) 
	(_goo_canvas_item_model_emit_changed): new simple functions to emit
	signals faster (avoids signal name lookups).

	* src/goocanvasitemsimple.c
	(goo_canvas_item_model_simple_set_property) 
	(goo_canvas_item_model_simple_set_transform) 
	(goo_canvas_item_model_simple_set_style): 
	* src/goocanvasgroup.c (goo_canvas_group_model_add_child): use the
	above functions for a little speedup.



Index: mv-scalability-demo.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/mv-scalability-demo.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mv-scalability-demo.c	25 Apr 2007 11:08:25 -0000	1.3
+++ mv-scalability-demo.c	25 Apr 2007 13:24:38 -0000	1.4
@@ -12,7 +12,9 @@
 #define N_ROWS 10
 #define ITEM_WIDTH 400
 
+#if 1
 #define ROTATE
+#endif
 
 #define N_TOTAL_ID_ITEMS (N_GROUP_COLS * N_GROUP_ROWS) * (N_COLS * N_ROWS)
 
@@ -22,6 +24,10 @@
 #define PADDING 10
 
 #if 1
+#define SET_STYLE
+#endif
+
+#if 1
 #define USE_TEXT
 #endif
 
@@ -171,7 +177,9 @@
 		  model = goo_canvas_rect_model_new (group, item_x, item_y,
 						     item_width, item_height,
 						     NULL);
+#ifdef SET_STYLE
 		  goo_canvas_item_model_set_style (model, (j % 2) ? style : style2);
+#endif
 #ifdef ROTATE
 		  goo_canvas_item_model_rotate (model, rotation, rotation_x, rotation_y);
 #endif
@@ -306,6 +314,11 @@
   gtk_container_add (GTK_CONTAINER (window), scrolled_win);
 
   canvas = create_canvas ();
+
+#if 0
+  exit (0);
+#endif
+
   gtk_container_add (GTK_CONTAINER (scrolled_win), canvas);
 
   gtk_main ();

Index: scalability-demo.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/scalability-demo.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- scalability-demo.c	25 Apr 2007 11:08:25 -0000	1.9
+++ scalability-demo.c	25 Apr 2007 13:24:38 -0000	1.10
@@ -8,7 +8,9 @@
 #define N_ROWS 10
 #define ITEM_WIDTH 400
 #define PADDING 10
+#if 1
 #define ROTATE
+#endif
 #else
 /* This tests a very wide canvas, nearly up to the 31-bit GDK window size
    limit. */
@@ -26,6 +28,10 @@
 #define MAX_ID_LEN 20
 
 #if 1
+#define SET_STYLE
+#endif
+
+#if 1
 #define USE_TEXT
 #endif
 
@@ -172,7 +178,9 @@
 		  item = goo_canvas_rect_new (group, item_x, item_y,
 					      item_width, item_height,
 					      NULL);
+#ifdef SET_STYLE
 		  goo_canvas_item_set_style (item, (j % 2) ? style : style2);
+#endif
 #ifdef ROTATE
 		  goo_canvas_item_rotate (item, rotation, rotation_x, rotation_y);
 #endif

_______________________________________________
cairo-commit mailing list
cairo-commit@cairographics.org
http://cairographics.org/cgi-bin/mailman/listinfo/cairo-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic