mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:35:08 +00:00
Kernel: Use BitmapView instead of Bitmap::wrap()
This commit is contained in:
parent
40552bb5fb
commit
a1d1a3b50b
3 changed files with 6 additions and 7 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Bitmap.h>
|
||||
#include <AK/BitmapView.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <Kernel/FileSystem/BlockBasedFileSystem.h>
|
||||
#include <Kernel/FileSystem/Inode.h>
|
||||
|
@ -185,7 +185,7 @@ private:
|
|||
BlockIndex bitmap_block_index { 0 };
|
||||
bool dirty { false };
|
||||
KBuffer buffer;
|
||||
Bitmap bitmap(u32 blocks_per_group) { return Bitmap::wrap(buffer.data(), blocks_per_group); }
|
||||
BitmapView bitmap(u32 blocks_per_group) { return BitmapView { buffer.data(), blocks_per_group }; }
|
||||
};
|
||||
|
||||
KResultOr<CachedBitmap*> get_bitmap_block(BlockIndex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue