diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-04-15 01:07:15 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-04-17 09:58:29 +0430 |
commit | dad829de50e94d55b323de59cd63b452646a9e68 (patch) | |
tree | 7f2901e3fe8dc6196a42c978914fed73d1647ed4 /Userland/Libraries/LibGfx/Bitmap.h | |
parent | 8b370f988b79568243be7e3f9c8250f1036f7aa4 (diff) | |
download | serenity-dad829de50e94d55b323de59cd63b452646a9e68.zip |
LibGfx: Add `Bitmap::visually_equals()`
Diffstat (limited to 'Userland/Libraries/LibGfx/Bitmap.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Bitmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Bitmap.h b/Userland/Libraries/LibGfx/Bitmap.h index 83cbcd979d..89b3130acc 100644 --- a/Userland/Libraries/LibGfx/Bitmap.h +++ b/Userland/Libraries/LibGfx/Bitmap.h @@ -236,6 +236,8 @@ public: [[nodiscard]] Core::AnonymousBuffer& anonymous_buffer() { return m_buffer; } [[nodiscard]] Core::AnonymousBuffer const& anonymous_buffer() const { return m_buffer; } + [[nodiscard]] bool visually_equals(Bitmap const&) const; + private: Bitmap(BitmapFormat, IntSize const&, int, BackingStore const&); Bitmap(BitmapFormat, IntSize const&, int, size_t pitch, void*); |