pass device object to framebuffer implementation