get the layer draw call to optimized state