Merge changes If756ad2a,I19aeb7ac

* changes:
  Add alpha channel for  the EGLConfig
  Change the conditions of layer as translucent