import BackgroundFilterVideoFrameProcessorObserver , { FilterCPUUtilizationHighEvent , FilterFrameDurationHighEvent , } from './BackgroundFilterVideoFrameProcessorObserver' ; /**
 * This class adds the functionality to allow for a set of unique observers to be added to the
 * video frame processor.
 */ internal export default class BackgroundFilterVideoFrameProcessorDelegate { protected observers : Set < BackgroundFilterVideoFrameProcessorObserver > = new Set ( ) ; param observer addObserver ( observer ) { this . observers . add ( observer ) ; } param observer removeObserver ( observer ) { this . observers . delete ( observer ) ; } param event filterFrameDurationHigh ( event ) { for ( const observer of this . observers ) { observer . filterFrameDurationHigh ?. call ( observer , event ) ; } } filterCPUUtilizationHigh ( event ) { for ( const observer of this . observers ) { observer . filterCPUUtilizationHigh ?. call ( observer , event ) ; } } }