eglCreateSurface() calls are posted to the render thread from both init() and surfaceCreated(). If the render thread does not process the eglCreateSurface() message from init() before surfaceCreated() is called, eglCreateSurface() will be called twice resulting in a crash. This CL makes sure eglCreateSurface() is only called once. BUG=b/25815604 R=hbos@webrtc.org Review URL: https://codereview.webrtc.org/1466133002 . Cr-Commit-Position: refs/heads/master@{#10769}