summaryrefslogtreecommitdiffstats
path: root/libs/hwui/utils
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-02-27 17:43:02 -0800
committerChris Craik <ccraik@google.com>2015-03-03 08:58:14 -0800
commita6b52198b9e73a4b7f80103116feeace74433246 (patch)
tree395c33d4ff8e9b54913706987a1a4569f944ea90 /libs/hwui/utils
parentc66f3baa42b8a732952abf1967c68f77d3e26131 (diff)
downloadframeworks_base-a6b52198b9e73a4b7f80103116feeace74433246.zip
frameworks_base-a6b52198b9e73a4b7f80103116feeace74433246.tar.gz
frameworks_base-a6b52198b9e73a4b7f80103116feeace74433246.tar.bz2
Glop drawBitmaps, drawPatches
Change-Id: I3f1cd3f47f97d2e0c9b9d153732e26ee0b1c58c2
Diffstat (limited to 'libs/hwui/utils')
-rw-r--r--libs/hwui/utils/Macros.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/hwui/utils/Macros.h b/libs/hwui/utils/Macros.h
index 2ed605e..9f7ac1c 100644
--- a/libs/hwui/utils/Macros.h
+++ b/libs/hwui/utils/Macros.h
@@ -36,9 +36,21 @@
#Type " must have standard layout")
#define MAKE_FLAGS_ENUM(enumType) \
+ inline int operator|=(int lhs, enumType rhs) { \
+ return lhs | static_cast<int>(rhs); \
+ } \
+ 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); \
} \
+ inline int operator&=(int lhs, enumType rhs) { \
+ return lhs & static_cast<int>(rhs); \
+ } \
inline int operator&(int lhs, enumType rhs) { \
return lhs & static_cast<int>(rhs); \
} \