Mercurial > MadButterfly
comparison src/redraw_man.c @ 520:f106b57b8660 Android_Skia
Skip coords that is not cached when add coords into zeroing_coords list.
If we don't skip normal coords, non-cached, here, cached coords that
own one or more non-cached ancestors would be fail to add into
redraw_man_t::zeroing_coords list.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 17 Dec 2009 16:13:35 +0800 |
parents | 7a1b17ebb3b4 |
children | fa2ccf39ba53 |
comparison
equal
deleted
inserted
replaced
519:7a1b17ebb3b4 | 520:f106b57b8660 |
---|---|
1532 } | 1532 } |
1533 } | 1533 } |
1534 | 1534 |
1535 /* Add all marked coords into redraw_man_t::zeroing_coords list */ | 1535 /* Add all marked coords into redraw_man_t::zeroing_coords list */ |
1536 FOR_COORDS_PREORDER(rdman->root_coord, coord) { | 1536 FOR_COORDS_PREORDER(rdman->root_coord, coord) { |
1537 if(!coord_get_flags(coord, COF_OWN_CANVAS)) | |
1538 continue; /* skip coords that is not cached */ | |
1539 | |
1537 if(!coord_get_flags(coord, COF_TEMP_MARK)) { | 1540 if(!coord_get_flags(coord, COF_TEMP_MARK)) { |
1538 preorder_coord_skip_subtree(coord); | 1541 preorder_coord_skip_subtree(coord); |
1539 continue; | 1542 continue; |
1540 } | 1543 } |
1541 add_zeroing_coord(rdman, coord); | 1544 add_zeroing_coord(rdman, coord); |