Move EGL setup to separate function.

Split the setup into test case specific setup and EGL setup.
EGL setup is only executed when Renderer is constructed and the state
is torn down when renderer is shutting down.
Additionally added missing release calls for ANativeWindow and
changed EGL surface type bit from pbuffer to window.

Bug: 23725943
Change-Id: I2c4ad3c82bf9f3355a3f71772c348be175ebcf4e
15 files changed