addTextStreamToSwitchHistory_(textStream, fromAdaptation) {
    const switchHistory = this.stats_.getSwitchHistory();
    switchHistory.updateCurrentText(textStream, fromAdaptation);
  }
@param {shaka.extern.Stream} textStream
@param {boolean} fromAdaptation
@private