changeset 527:47a860beaa44 Android_Skia

Every coord can only appear at mot one time in the dirty coord list. rdman_coord_changed() will check COF_DIRTY flags to make sure never add a coord into dirty coord list more than one time. So, we don't need to check it, again, in clean_rdman_dirties().
author Thinker K.F. Li <thinker@branda.to>
date Tue, 22 Dec 2009 22:39:53 +0800
parents 3f695a6177b2
children d687d3395264
files src/redraw_man.c
diffstat 1 files changed, 15 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/redraw_man.c	Tue Dec 22 22:31:38 2009 +0800
+++ b/src/redraw_man.c	Tue Dec 22 22:39:53 2009 +0800
@@ -1864,23 +1864,21 @@
     coords = rdman->dirty_coords.ds;
     for(i = 0; i < rdman->dirty_coords.num; i++) {
 	coord = coords[i];
-	if(coord->flags & COF_DIRTY) {
-	    if(!coord_get_flags(coord, COF_OWN_CANVAS))
-		SWAP(coord->cur_area, coord->last_area, area_t *);
-	    else {
-		coord->last_area = coord->cur_area;
-		coord->cur_area = &coord->canvas_info->owner_mems_area;
-		/* coord->cur_area are reseted to another area at
-		 * #RST.
-		 *
-		 * coord->cur_area of a cached coord is aggregated
-		 * area.  But, its meaning is changed back to be area
-		 * of members to compute.  It can avoid specialized
-		 * code for cached coords to change meaning of
-		 * cur_area temporary when computing area of a cached
-		 * coord.
-		 */
-	    }
+	if(!coord_get_flags(coord, COF_OWN_CANVAS))
+	    SWAP(coord->cur_area, coord->last_area, area_t *);
+	else {
+	    coord->last_area = coord->cur_area;
+	    coord->cur_area = &coord->canvas_info->owner_mems_area;
+	    /* coord->cur_area are reseted to another area at
+	     * #RST.
+	     *
+	     * coord->cur_area of a cached coord is aggregated
+	     * area.  But, its meaning is changed back to be area
+	     * of members to compute.  It can avoid specialized
+	     * code for cached coords to change meaning of
+	     * cur_area temporary when computing area of a cached
+	     * coord.
+	     */
 	}
     }