init(mergedUpdateFirstUpdate:secondUpdate:)
Combines two updates into a new update that includes the metadata for both source updates.
Declaration
init?(mergedUpdateFirstUpdate firstUpdate: CGDisplayStreamUpdate?, secondUpdate: CGDisplayStreamUpdate?)Parameters
- firstUpdate:
A Cgdisplaystreamupdate reference. This must be the earlier of the two update references.
- secondUpdate:
A Cgdisplaystreamupdate reference. This must be the later of the two update references.
Return Value
A new update that contains the union of the information stored in the two source updates.
Discussion
If your app needs to drop a frame without processing it, use this function to merge that frame’s update data with the data provided for a later frame update.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()