1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

LibWeb: Make a SharedBitmap struct for OOPWV bitmaps

Instead of having separate members for "bitmap ID" and "bitmap", let's
wrap them in a struct.
This commit is contained in:
Andreas Kling 2021-09-17 14:30:49 +02:00
parent c8c3828b59
commit 17a5c96b7c
2 changed files with 26 additions and 24 deletions

View file

@ -110,12 +110,15 @@ private:
AK::URL m_url;
struct SharedBitmap {
i32 id { -1 };
RefPtr<Gfx::Bitmap> bitmap;
};
struct ClientState {
RefPtr<WebContentClient> client;
RefPtr<Gfx::Bitmap> front_bitmap;
RefPtr<Gfx::Bitmap> back_bitmap;
i32 front_bitmap_id { -1 };
i32 back_bitmap_id { -1 };
SharedBitmap front_bitmap;
SharedBitmap back_bitmap;
i32 next_bitmap_id { 0 };
bool has_usable_bitmap { false };
} m_client_state;