mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Make the Bitmap::size_in_bytes() member function public
It's annoying to calculate it when it's already a member function.
This commit is contained in:
parent
ca731e2cdd
commit
4d40864b9d
Notes:
sideshowbarker
2024-07-18 22:19:32 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/4d40864b9dc Pull-request: https://github.com/SerenityOS/serenity/pull/5344 Issue: https://github.com/SerenityOS/serenity/issues/5317
1 changed files with 1 additions and 2 deletions
|
@ -82,6 +82,7 @@ public:
|
|||
}
|
||||
|
||||
size_t size() const { return m_size; }
|
||||
size_t size_in_bytes() const { return ceil_div(m_size, static_cast<size_t>(8)); }
|
||||
bool get(size_t index) const
|
||||
{
|
||||
ASSERT(index < m_size);
|
||||
|
@ -523,8 +524,6 @@ public:
|
|||
static constexpr u32 max_size = 0xffffffff;
|
||||
|
||||
private:
|
||||
size_t size_in_bytes() const { return ceil_div(m_size, static_cast<size_t>(8)); }
|
||||
|
||||
u8* m_data { nullptr };
|
||||
size_t m_size { 0 };
|
||||
bool m_owned { false };
|
||||
|
|
Loading…
Reference in a new issue