<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDisplayStreamUpdateCreateMergedUpdate",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGDisplayStreamUpdateCreateMergedUpdate"
  },
  "title" : "CGDisplayStreamUpdateCreateMergedUpdate"
}
-->

# CGDisplayStreamUpdateCreateMergedUpdate

```
extern CGDisplayStreamUpdateRefCGDisplayStreamUpdateCreateMergedUpdate(CGDisplayStreamUpdateRef firstUpdate, CGDisplayStreamUpdateRef secondUpdate);
```

## Parameters

`firstUpdate`

The first update (in a temporal sense)

`secondUpdate`

The second update (in a temporal sense)

## Return Value

The new CGDisplayStreamUpdateRef

## Discussion

\abstract Merge two CGDisplayUpdateRefs into a new one.
\discussion In cases where the client wishes to drop certain frame updates, this function may be used to merge two
CGDisplayUpdateRefs together.  The core bit of functionality here is generating a new set of refresh/move/dirty
rectangle arrays that properly represent the union of the deltas between the two frames.  Note that the ordering of
the two refs is important.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)