mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
Make sure all GraphicsBitmap scanlines are 16-byte aligned.
This is a prerequisite for some optimizations.
This commit is contained in:
parent
fafdda8902
commit
cec16105cc
5 changed files with 29 additions and 24 deletions
|
@ -35,6 +35,8 @@ public:
|
|||
|
||||
void set_mmap_name(const String&);
|
||||
|
||||
size_t size_in_bytes() const { return m_pitch * m_size.height() * sizeof(RGBA32); }
|
||||
|
||||
private:
|
||||
GraphicsBitmap(Format, const Size&);
|
||||
GraphicsBitmap(Format, const Size&, RGBA32*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue