diff include/mb_types.h @ 816:0e56a1ca19b2

Testcases for caching coords
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 13 Sep 2010 13:25:34 +0800
parents cedfe4966fd6
children 586e50f82c1f
line wrap: on
line diff
--- a/include/mb_types.h	Sun Sep 12 12:20:09 2010 +0800
+++ b/include/mb_types.h	Mon Sep 13 13:25:34 2010 +0800
@@ -260,6 +260,7 @@
 #define COF_SKIP_ZERO 0x2000	/*!< \brief The coord just skip zeroing.
 				 * No real zeroing was performed.
 				 */
+#define COF_ALWAYS_CACHE 0x4000	/*!< \brief The coord always own a canvas */
 /* @} */
 
 extern void matrix_mul(co_aix *m1, co_aix *m2, co_aix *dst);
@@ -298,6 +299,7 @@
     } while(0)
 #define coord_is_root(co) ((co)->parent == NULL)
 #define coord_is_cached(co) ((co)->flags & COF_OWN_CANVAS)
+#define coord_is_always_cached(co) ((co)->flags & COF_ALWAYS_CACHE)
 #define coord_is_fast_cached(co) ((co)->flags & COF_FAST_MASK)
 #define coord_is_precise_cached(co) ((co)->flags & COF_PRECISE_MASK)
 #define coord_is_zeroing(co) ((co)->flags & COF_MUST_ZEROING)