Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 81dcfe19b0fcfeca4c22815de439b7d6acc0c31d..7da0b3d766469ed9c88993b0d8f90af4525c8150 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -1507,4 +1507,16 @@ private: |
size_t fRowBytes; |
}; |
+static inline SkCanvas::SaveFlags operator|(const SkCanvas::SaveFlags lhs, |
+ const SkCanvas::SaveFlags rhs) { |
+ return static_cast<SkCanvas::SaveFlags>(lhs | rhs); |
+} |
+ |
+static inline SkCanvas::SaveFlags& operator|=(SkCanvas::SaveFlags& lhs, |
+ const SkCanvas::SaveFlags rhs) { |
+ lhs = lhs | rhs; |
+ return lhs; |
+} |
+ |
+ |
#endif |