add frame parameters in renderFunction

Change-Id: Ib4591791faee6741d605e7adb903b4d710f4347f