initial work on allowing to resize the OpenGL object

Change-Id: I29799522d32e31b4ffbba9d931fda352ee080e2d