refactoring, extract the data out from BufferMgr. Add Render interface.

merge it, dude