summaryrefslogtreecommitdiffstats
path: root/libs/hwui/utils
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-02-25 17:16:16 -0800
committerChris Craik <ccraik@google.com>2015-02-26 10:56:07 -0800
commitef2507439c08f4e9c4c9bba1c6243ca9df2ee827 (patch)
tree0312e1808ee6915a96e1770cb190ea4674e2376a /libs/hwui/utils
parent03ae272459869b854e5db252fc81a64a516e111f (diff)
downloadframeworks_base-ef2507439c08f4e9c4c9bba1c6243ca9df2ee827.zip
frameworks_base-ef2507439c08f4e9c4c9bba1c6243ca9df2ee827.tar.gz
frameworks_base-ef2507439c08f4e9c4c9bba1c6243ca9df2ee827.tar.bz2
Glop mesh reorg, support for drawBitmapMesh
Change-Id: Iaf5550bdd93da93e59a5b838234ab5612e067387
Diffstat (limited to 'libs/hwui/utils')
-rw-r--r--libs/hwui/utils/Macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/utils/Macros.h b/libs/hwui/utils/Macros.h
index 49d364e7..2ed605e 100644
--- a/libs/hwui/utils/Macros.h
+++ b/libs/hwui/utils/Macros.h
@@ -41,6 +41,12 @@
} \
inline int operator&(int lhs, enumType rhs) { \
return lhs & static_cast<int>(rhs); \
+ } \
+ inline int operator&(enumType lhs, int rhs) { \
+ return static_cast<int>(lhs) & rhs; \
+ } \
+ inline int operator&(enumType lhs, enumType rhs) { \
+ return static_cast<int>(lhs) & static_cast<int>(rhs); \
}
#endif /* MACROS_H */