Change-Id: I2707aa6043cf1ff3d0e236d5a27e1d81aa5453fe
tbm_surface_destroy(__tsurface);
}
+void *DSBufferTBMImpl::getNativeBuffer()
+{
+ return (void *)__tsurface;
+}
+
tbm_format DSBufferTBMImpl::getTBMFormat(IDSBuffer::Format &format)
{
tbm_format tformat = 0; // what is the error format?
DSBufferTBMImpl(int width, int height, IDSBuffer::Format format);
~DSBufferTBMImpl();
+ void *getNativeBuffer() override;
+
static tbm_format getTBMFormat(IDSBuffer::Format &format);
private:
int __width;
public:
virtual ~IDSBuffer() = default;
+
+ virtual void *getNativeBuffer() = 0;
};
}