LibGfx+LibWebView+UI: Store Gfx::Bitmap in RefPtr to const

This commit is contained in:
Andrew Kaster 2025-04-15 15:50:18 -06:00 committed by Andrew Kaster
commit 91b549f797
Notes: github-actions[bot] 2025-04-16 16:44:09 +00:00
8 changed files with 15 additions and 15 deletions

View file

@ -267,7 +267,7 @@ protected:
struct SharedBitmap {
i32 id { -1 };
Web::DevicePixelSize last_painted_size;
RefPtr<Gfx::Bitmap> bitmap;
RefPtr<Gfx::Bitmap const> bitmap;
};
struct ClientState {
@ -289,7 +289,7 @@ protected:
RefPtr<Core::Timer> m_backing_store_shrink_timer;
RefPtr<Gfx::Bitmap> m_backup_bitmap;
RefPtr<Gfx::Bitmap const> m_backup_bitmap;
Web::DevicePixelSize m_backup_bitmap_size;
size_t m_crash_count = 0;