aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrTypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index 67cf4db8d9..c1d324bad0 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -23,6 +23,9 @@
inline X operator | (X a, X b) { \
return (X) (+a | +b); \
} \
+ inline X& operator |= (X& a, X b) { \
+ return (a = a | b); \
+ } \
\
inline X operator & (X a, X b) { \
return (X) (+a & +b); \
@@ -38,6 +41,7 @@
#define GR_DECL_BITFIELD_OPS_FRIENDS(X) \
friend X operator | (X a, X b); \
+ friend X& operator |= (X& a, X b); \
\
friend X operator & (X a, X b); \
\