Merge "Allow ~Layer() to happen after onGLContextDestroyed" into lmp-mr1-dev