Optimization to ensure Layer.draw() is only called once per browser loop.