11 #include "IBufferObject.h" 29 static std::unique_ptr<CBufferObject>
GetBufferObject(
bool needsCreateBySize);
31 virtual bool CreateBufferObject(uint32_t format, uint32_t width, uint32_t height)
override = 0;
bool CreateBufferObject(uint64_t size) override
Create a BufferObject based only on the size of the desired buffer.
Definition: BufferObject.h:32
void SyncEnd() override
Must be called after reading/writing data to the BufferObject.
Definition: BufferObject.cpp:51
void SyncStart() override
Must be called before reading/writing data to the BufferObject.
Definition: BufferObject.cpp:39
Interface to describe CBufferObjects.
Definition: IBufferObject.h:39
virtual bool CreateBufferObject(uint32_t format, uint32_t width, uint32_t height) override=0
Create a BufferObject based on the format, width, and height of the desired buffer.
static std::unique_ptr< CBufferObject > GetBufferObject(bool needsCreateBySize)
Get a BufferObject from CBufferObjectFactory.
Definition: BufferObject.cpp:19
base class for using the IBufferObject interface.
Definition: BufferObject.h:21
uint32_t GetStride() override
Get the Stride of the BufferObject.
Definition: BufferObject.cpp:29
int GetFd() override
Get the File Descriptor of the BufferObject.
Definition: BufferObject.cpp:24
uint64_t GetModifier() override
Get the Modifier of the BufferObject.
Definition: BufferObject.cpp:34