Index: include/gpu/GrTypes.h |
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h |
index fceae19f3711d1fb2cee201a7e112dcc816a8a98..653756acbc9094559c094641a32c91d02448e92e 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); \ |
\ |