Mercurial > MadButterfly
comparison include/mb_types.h @ 850:33fd5fdc8b48 abs_n_rel_center
Keep cache to parent device matrix in canvas_info.
This can avoid to compute matrix repeatly.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 20 Sep 2010 22:43:43 +0800 |
parents | 048cc704bef7 |
children | 85f22a771e4a |
comparison
equal
deleted
inserted
replaced
847:dfe28355bded | 850:33fd5fdc8b48 |
---|---|
173 area_t cached_dirty_area; /*!< Used to dirty an area in cached space. */ | 173 area_t cached_dirty_area; /*!< Used to dirty an area in cached space. */ |
174 area_t pcache_areas[2]; /*!< The area in the space of parent | 174 area_t pcache_areas[2]; /*!< The area in the space of parent |
175 * cached. */ | 175 * cached. */ |
176 area_t *pcache_cur_area; /*!< Current area for parent cached. */ | 176 area_t *pcache_cur_area; /*!< Current area for parent cached. */ |
177 area_t *pcache_last_area; /*!< Last area for parent cached. */ | 177 area_t *pcache_last_area; /*!< Last area for parent cached. */ |
178 co_aix cache_2_pdev[6]; /*!< Transfrom matrix from space of | |
179 * cached one to its parent. */ | |
180 co_aix cache_2_pdev_rev[6]; /*!< Reverse of cache_2_pdev. */ | |
178 } coord_canvas_info_t; | 181 } coord_canvas_info_t; |
179 | 182 |
180 /*! \brief A coordination system. | 183 /*! \brief A coordination system. |
181 * | 184 * |
182 * It have a transform function defined by matrix to transform | 185 * It have a transform function defined by matrix to transform |
365 (coord)->canvas_info->canvas = _canvas; \ | 368 (coord)->canvas_info->canvas = _canvas; \ |
366 } while(0) | 369 } while(0) |
367 #define _coord_get_dirty_areas(coord) (&(coord)->canvas_info->dirty_areas) | 370 #define _coord_get_dirty_areas(coord) (&(coord)->canvas_info->dirty_areas) |
368 #define _coord_get_aggr_dirty_areas(coord) \ | 371 #define _coord_get_aggr_dirty_areas(coord) \ |
369 ((coord)->canvas_info->aggr_dirty_areas) | 372 ((coord)->canvas_info->aggr_dirty_areas) |
373 #define coord_get_2pdev(coord) ((coord)->canvas_info->cache_2_pdev) | |
374 #define coord_get_2pdev_rev(coord) ((coord)->canvas_info->cache_2_pdev_rev) | |
370 | 375 |
371 /* @} */ | 376 /* @} */ |
372 | 377 |
373 /*! \brief A grahpic shape. | 378 /*! \brief A grahpic shape. |
374 * | 379 * |