23 #include "pedigree/kernel/machine/Device.h" 24 #include "pedigree/kernel/machine/Display.h" 25 #include "pedigree/kernel/processor/MemoryRegion.h" 26 #include "pedigree/kernel/processor/types.h" 27 #include "pedigree/kernel/utilities/List.h" 28 #include "pedigree/kernel/utilities/MemoryAllocator.h" 29 #include "pedigree/kernel/utilities/Tree.h" 30 #include "pedigree/kernel/utilities/new" 49 size_t vidMemSz,
size_t displayNum);
65 virtual void setCurrentBuffer(
rgb_t *pBuffer);
66 virtual void updateBuffer(
67 rgb_t *pBuffer,
size_t x1 = ~0UL,
size_t y1 = ~0UL,
size_t x2 = ~0UL,
69 virtual void killBuffer(
rgb_t *pBuffer);
71 rgb_t *pBuffer,
size_t fromX,
size_t fromY,
size_t toX,
size_t toY,
72 size_t width,
size_t height);
74 rgb_t *pBuffer,
size_t x,
size_t y,
size_t width,
size_t height,
84 m_pLogicalFramebuffer = p;
92 void packColour(
rgb_t colour,
size_t idx, uintptr_t pFb);
120 : pBackbuffer(0), pFbBackbuffer(0), mr(
"Buffer"), fbmr(
"Fb buffer"),
125 uint8_t *pFbBackbuffer;
virtual void * getFramebuffer()
virtual bool getPixelFormat(Display::PixelFormat &pPf)
virtual bool setScreenMode(Display::ScreenMode sm)
MemoryAllocator m_Allocator
virtual void fillRectangle(rgb_t *pBuffer, size_t x, size_t y, size_t width, size_t height, rgb_t colour)
virtual bool setScreenMode(size_t nWidth, size_t nHeight, size_t nBpp)
ModeType m_SpecialisedMode
virtual rgb_t * newBuffer()
Special memory entity in the kernel's virtual address space.
List< Display::ScreenMode * > m_ModeList
Tree< rgb_t *, Buffer * > m_Buffers
Abstracts the system's framebuffer offering.
Display::ScreenMode m_Mode
virtual bool getScreenModes(List< Display::ScreenMode * > &sms)
virtual bool setScreenMode(ScreenMode sm)
virtual bool getCurrentScreenMode(Display::ScreenMode &sm)