AK: Simplify Bitmap and implement in terms of BitmapView

Add Bitmap::view() and forward most of the calls to BitmapView since
the code was identical.

Bitmap is now primarily concerned with its dynamically allocated
backing store and BitmapView deals with the rest.
This commit is contained in:
Andreas Kling 2021-03-04 11:05:34 +01:00
commit 1208fc7d37
Notes: sideshowbarker 2024-07-18 21:43:17 +09:00
3 changed files with 40 additions and 412 deletions

View file

@ -43,7 +43,6 @@ NonnullRefPtr<PhysicalRegion> PhysicalRegion::create(PhysicalAddress lower, Phys
PhysicalRegion::PhysicalRegion(PhysicalAddress lower, PhysicalAddress upper)
: m_lower(lower)
, m_upper(upper)
, m_bitmap(Bitmap::create())
{
}