 
     {
       tabLength, @editorWidthInChars, @tokenizedBuffer, buffer, @ignoreInvisibles,
-      @largeFileMode, @config, @assert, @grammarRegistry, @packageManager
+      @largeFileMode, @config, @assert, @grammarRegistry, @packageManager, @displayLayer
     } = params
 
     @emitter = new Emitter


  @deserialize: (state, atomEnvironment) ->
    state.tokenizedBuffer = TokenizedBuffer.deserialize(state.tokenizedBuffer, atomEnvironment)
    state.config = atomEnvironment.config
    state.assert = atomEnvironment.assert
    state.grammarRegistry = atomEnvironment.grammars

    editorWidthInChars: @editorWidthInChars
    tokenizedBuffer: @tokenizedBuffer.serialize()
    largeFileMode: @largeFileMode
    displayLayerId: @displayLayer.id

  copy: ->
    new DisplayBuffer({
      @buffer, tabLength: @getTabLength(), @largeFileMode, @config, @assert,
      @grammarRegistry, @packageManager, displayLayer: @buffer.copyDisplayLayer(@displayLayer.id)
    })

  resetDisplayLayer: ->
