11 #include "utils/BufferObject.h" 26 static std::unique_ptr<CBufferObject> Create();
27 static void Register();
34 std::string
GetName()
const override {
return "CGBMBufferObject"; }
40 gbm_device* m_device{
nullptr};
41 gbm_bo* m_bo{
nullptr};
46 uint8_t* m_map{
nullptr};
47 void* m_map_data{
nullptr};
std::string GetName() const override
Get the Name of the BufferObject type in use.
Definition: GBMBufferObject.h:34
bool CreateBufferObject(uint32_t format, uint32_t width, uint32_t height) override
Create a BufferObject based on the format, width, and height of the desired buffer.
Definition: GBMBufferObject.cpp:42
void ReleaseMemory() override
Release the mapped memory of the BufferObject.
Definition: GBMBufferObject.cpp:83
void DestroyBufferObject() override
Destroy a BufferObject.
Definition: GBMBufferObject.cpp:60
base class for using the IBufferObject interface.
Definition: BufferObject.h:21
uint64_t GetModifier() override
Get the Modifier of the BufferObject.
Definition: GBMBufferObject.cpp:93
Definition: GBMBufferObject.h:19
uint8_t * GetMemory() override
Get the Memory location of the BufferObject.
Definition: GBMBufferObject.cpp:71