Lines Matching refs:operator
40 SK_ALWAYS_INLINE constexpr operator bool() const { return fValue; }
42 SK_ALWAYS_INLINE bool operator==(Mask m) const { return fValue == m.fValue; }
43 SK_ALWAYS_INLINE bool operator!=(Mask m) const { return fValue != m.fValue; }
45 SK_ALWAYS_INLINE constexpr Mask operator|(Mask m) const { return Mask(fValue | m.fValue); }
46 SK_ALWAYS_INLINE constexpr Mask operator&(Mask m) const { return Mask(fValue & m.fValue); }
47 SK_ALWAYS_INLINE constexpr Mask operator^(Mask m) const { return Mask(fValue ^ m.fValue); }
48 SK_ALWAYS_INLINE constexpr Mask operator~() const { return Mask(~fValue); }
50 SK_ALWAYS_INLINE Mask& operator|=(Mask m) { return *this = *this | m; }
51 SK_ALWAYS_INLINE Mask& operator&=(Mask m) { return *this = *this & m; }
52 SK_ALWAYS_INLINE Mask& operator^=(Mask m) { return *this = *this ^ m; }
64 SK_MAYBE_UNUSED constexpr skgpu::Mask<E> operator|(E a, E b) { return skgpu::Mask<E>(a) | b; } \
65 SK_MAYBE_UNUSED constexpr skgpu::Mask<E> operator&(E a, E b) { return skgpu::Mask<E>(a) & b; } \
66 SK_MAYBE_UNUSED constexpr skgpu::Mask<E> operator^(E a, E b) { return skgpu::Mask<E>(a) ^ b; } \
67 SK_MAYBE_UNUSED constexpr skgpu::Mask<E> operator~(E e) { return ~skgpu::Mask<E>(e); } \
70 friend constexpr skgpu::Mask<E> operator|(E, E); \
71 friend constexpr skgpu::Mask<E> operator&(E, E); \
72 friend constexpr skgpu::Mask<E> operator^(E, E); \
73 friend constexpr skgpu::Mask<E> operator~(E); \