let us pass the window to get the size correct

Change-Id: I8bd8a319e67cdcf7266d3c8f86d1bf132163d665
set the size to context and renderer before rendering

Change-Id: I2945a7b8647d0a40270b1e65cde2a0eb936ab1d1