Loading libs/nativewindow/include/android/hardware_buffer_aidl.h +7 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,13 @@ public: inline AHardwareBuffer* _Nullable get() const { return mBuffer; } inline explicit operator bool () const { return mBuffer != nullptr; } inline bool operator!=(const HardwareBuffer& rhs) const { return get() != rhs.get(); } inline bool operator<(const HardwareBuffer& rhs) const { return get() < rhs.get(); } inline bool operator<=(const HardwareBuffer& rhs) const { return get() <= rhs.get(); } inline bool operator==(const HardwareBuffer& rhs) const { return get() == rhs.get(); } inline bool operator>(const HardwareBuffer& rhs) const { return get() > rhs.get(); } inline bool operator>=(const HardwareBuffer& rhs) const { return get() >= rhs.get(); } HardwareBuffer& operator=(HardwareBuffer&& other) noexcept { reset(other.release()); return *this; Loading Loading
libs/nativewindow/include/android/hardware_buffer_aidl.h +7 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,13 @@ public: inline AHardwareBuffer* _Nullable get() const { return mBuffer; } inline explicit operator bool () const { return mBuffer != nullptr; } inline bool operator!=(const HardwareBuffer& rhs) const { return get() != rhs.get(); } inline bool operator<(const HardwareBuffer& rhs) const { return get() < rhs.get(); } inline bool operator<=(const HardwareBuffer& rhs) const { return get() <= rhs.get(); } inline bool operator==(const HardwareBuffer& rhs) const { return get() == rhs.get(); } inline bool operator>(const HardwareBuffer& rhs) const { return get() > rhs.get(); } inline bool operator>=(const HardwareBuffer& rhs) const { return get() >= rhs.get(); } HardwareBuffer& operator=(HardwareBuffer&& other) noexcept { reset(other.release()); return *this; Loading