diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-17 00:02:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-17 00:03:33 +0100 |
commit | fe96418a70f52a615f91c44d784139f966795f68 (patch) | |
tree | 5de76bf041847e1ea6d94054c06c325fa0b3fe5c /Userland/Libraries/LibGfx/Bitmap.h | |
parent | 447e6da52c319a012cd877346b936fb109f64527 (diff) | |
download | serenity-fe96418a70f52a615f91c44d784139f966795f68.zip |
LibGfx: Remove remaining SharedBuffer support in Gfx::Bitmap
Diffstat (limited to 'Userland/Libraries/LibGfx/Bitmap.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Bitmap.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Userland/Libraries/LibGfx/Bitmap.h b/Userland/Libraries/LibGfx/Bitmap.h index 09b90222d6..47098f17ff 100644 --- a/Userland/Libraries/LibGfx/Bitmap.h +++ b/Userland/Libraries/LibGfx/Bitmap.h @@ -114,8 +114,6 @@ public: static RefPtr<Bitmap> create_wrapper(BitmapFormat, const IntSize&, size_t pitch, void*); static RefPtr<Bitmap> load_from_file(const StringView& path); static RefPtr<Bitmap> create_with_anon_fd(BitmapFormat, int anon_fd, const IntSize&, const Vector<RGBA32>& palette, ShouldCloseAnonymousFile); - static RefPtr<Bitmap> create_with_shared_buffer(BitmapFormat, NonnullRefPtr<SharedBuffer>&&, const IntSize&); - static RefPtr<Bitmap> create_with_shared_buffer(BitmapFormat, NonnullRefPtr<SharedBuffer>&&, const IntSize&, const Vector<RGBA32>& palette); static RefPtr<Bitmap> create_from_serialized_byte_buffer(ByteBuffer&& buffer); static bool is_path_a_supported_image_format(const StringView& path) { @@ -132,7 +130,6 @@ public: RefPtr<Gfx::Bitmap> rotated(Gfx::RotationDirection) const; RefPtr<Gfx::Bitmap> flipped(Gfx::Orientation) const; - RefPtr<Bitmap> to_bitmap_backed_by_shared_buffer() const; RefPtr<Bitmap> to_bitmap_backed_by_anon_fd() const; ByteBuffer serialize_to_byte_buffer() const; @@ -150,10 +147,6 @@ public: int width() const { return m_size.width(); } int height() const { return m_size.height(); } size_t pitch() const { return m_pitch; } - int shbuf_id() const; - - SharedBuffer* shared_buffer() { return m_shared_buffer.ptr(); } - const SharedBuffer* shared_buffer() const { return m_shared_buffer.ptr(); } ALWAYS_INLINE bool is_indexed() const { @@ -255,7 +248,6 @@ private: }; Bitmap(BitmapFormat, const IntSize&, Purgeable, const BackingStore&); Bitmap(BitmapFormat, const IntSize&, size_t pitch, void*); - Bitmap(BitmapFormat, NonnullRefPtr<SharedBuffer>&&, const IntSize&, const Vector<RGBA32>& palette); Bitmap(BitmapFormat, int anon_fd, const IntSize&, void*, const Vector<RGBA32>& palette); static Optional<BackingStore> allocate_backing_store(BitmapFormat, const IntSize&, Purgeable); @@ -270,7 +262,6 @@ private: bool m_needs_munmap { false }; bool m_purgeable { false }; bool m_volatile { false }; - RefPtr<SharedBuffer> m_shared_buffer; int m_anon_fd { -1 }; }; |