     @cachedScrollTop = scrollTop
     @requestUpdate()
 
-
-  registerBufferChanges: (event) =>
-    @pendingChanges.push event
 
   getMinimapHeight: -> @getLinesCount() * @getLineHeight()
   getLineHeight: -> 2


  setEditorView: (@editorView) ->
    @editor = @editorView.getModel()
    @buffer = @editorView.getEditor().buffer

    @subscribe @editor, 'screen-lines-changed.minimap', (changes) =>
      @pendingChanges.push changes
      @requestUpdate()

  requestUpdate: ->


  update: =>
    return unless @editorView?
    return unless @displayBuffer.tokenizedBuffer.fullyTokenized

    #reset canvas virtual width/height
    @lineCanvas[0].width = @lineCanvas[0].offsetWidth
