Mercurial > MadButterfly
comparison src/redraw_man.c @ 532:5711059b9642 Android_Skia
Add todo
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 25 Dec 2009 12:11:20 +0800 |
parents | 1ad6c6192a80 |
children | 9f2d07a60493 |
comparison
equal
deleted
inserted
replaced
531:1ad6c6192a80 | 532:5711059b9642 |
---|---|
1719 abort(); /* should not happen! */ | 1719 abort(); /* should not happen! */ |
1720 | 1720 |
1721 area0 = coord->canvas_info->aggr_dirty_areas; | 1721 area0 = coord->canvas_info->aggr_dirty_areas; |
1722 area1 = area0 + 1; | 1722 area1 = area0 + 1; |
1723 | 1723 |
1724 /* TODO: Since both cur & last area of coords are added into dirty | |
1725 * area list, position of both areas shoud be adjusted for | |
1726 * all descendants when zeroing a cached coord. | |
1727 */ | |
1724 for(i = 0; i < n_areas; i++) { | 1728 for(i = 0; i < n_areas; i++) { |
1725 area = areas[i]; | 1729 area = areas[i]; |
1726 if(area->w != 0 || area->h != 0) | 1730 if(area->w != 0 || area->h != 0) |
1727 break; | 1731 break; |
1728 } | 1732 } |
1784 | 1788 |
1785 parent = coord->parent; | 1789 parent = coord->parent; |
1786 pcached_coord = parent->canvas_info->owner; | 1790 pcached_coord = parent->canvas_info->owner; |
1787 | 1791 |
1788 compute_cached_2_pdev_matrix(coord, canvas2pdev_matrix); | 1792 compute_cached_2_pdev_matrix(coord, canvas2pdev_matrix); |
1789 | 1793 |
1794 /* Add dirty areas to parent cached coord. */ | |
1790 matrix_trans_pos(canvas2pdev_matrix, poses0[0], poses0[0] + 1); | 1795 matrix_trans_pos(canvas2pdev_matrix, poses0[0], poses0[0] + 1); |
1791 matrix_trans_pos(canvas2pdev_matrix, poses0[1], poses0[1] + 1); | 1796 matrix_trans_pos(canvas2pdev_matrix, poses0[1], poses0[1] + 1); |
1792 area_init(area0, 2, poses0); | 1797 area_init(area0, 2, poses0); |
1793 add_dirty_area(rdman, pcached_coord, area0); | 1798 add_dirty_area(rdman, pcached_coord, area0); |
1794 | 1799 |