[ios][gles] Refactor