Wrap debug functions in MOZ_ENABLE_GL_TRACKING define.
Port layerscope GL changes to new layers.

https://bugzilla.mozilla.org/show_bug.cgi?id=830881