mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
Kernel: Encapsulate the Region's COW map a bit better.
This commit is contained in:
parent
2fa5e2b66b
commit
01ffcdfa31
Notes:
sideshowbarker
2024-07-19 14:08:51 +09:00
Author: https://github.com/awesomekling
Commit: 01ffcdfa31
5 changed files with 19 additions and 13 deletions
|
@ -75,7 +75,8 @@ public:
|
|||
m_page_directory.clear();
|
||||
}
|
||||
|
||||
const Bitmap& cow_map() const { return m_cow_map; }
|
||||
bool should_cow(size_t page_index) const { return m_cow_map.get(page_index); }
|
||||
void set_should_cow(size_t page_index, bool cow) { m_cow_map.set(page_index, cow); }
|
||||
|
||||
void set_writable(bool b) { m_writable = b; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue