Skip to content

chore: merge upstream gpui from zed@cd585371e8 - #79

Merged
nolight132 merged 4 commits into
masterfrom
chore/gpui-sync-zed-cd58537
Nov 26, 2026
Merged

nolight132 merged 4 commits into
masterfrom
chore/gpui-sync-zed-cd58537

Conversation

@nolight132

Copy link
Copy Markdown
Member

Summary

  • sync gpui with zed@cd585371e8: upstream retained layout and keyed measurements, deferred content masks during prepaint, cross-platform frame and input latency telemetry, bounds tree tests, removal of vendor-specific directx driver queries, and resvg/usvg 0.49 with svgz
  • replace the fork's custom retained layout implementation with upstream's node cache and keyed text measurement while keeping unsnapped subtrees, cached-view stand-in roots, and text shadows intact
  • keep deferred line-wrapper pooling when truncated text fits without clipping
  • keep the fork's depth gate, filter layers, backdrop blur, custom shaders, bounds-tree order replay, and wayland draw-ahead frame scheduling intact

@github-actions github-actions Bot added linux changes the Linux backend windows changes the Windows backend text changes text shaping, layout or rasterising rendering changes the scene, shaders or a renderer labels Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Summary

This PR syncs the GPUI subset with upstream Zed. It replaces the retained layout cache with keyed measurements, updates resvg/usvg to 0.49, and changes Windows presentability checks and DirectX driver-version lookup.

The pull request changes layout caching and text measurement, bounds-tree representation, frame timing and profiling, and Windows window-presentability handling. It also expands randomized layout tests and benchmarks, updates SVG dependencies, and changes app entity borrowing and empty-tree editing behavior.

Merge Risk: Low · previous review 0e41c · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Release list state when removing a subtree. · randomized_element_tree.rs:995-1001

crates/gpui/src/randomized_element_tree.rs:995-1001
Minor · Stability & Availability · Quick win

Release list state when removing a subtree.

The removal loop deletes ordinary scroll handles but leaves list_states and uniform_list_scroll_handles intact. If a long-running workload removes rendered lists and inserts replacements, the old entries remain until the whole tree drops. Replacement nodes get new IDs, so a fixed-size tree can accumulate state indefinitely. Remove both entries in the existing subtree walk.

Additional comments: 1

crates/gpui/src/randomized_element_tree.rs: 1

3359-3367: Trivial · Maintainability & Code Quality · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Compare the mutation streams before comparing frames.

The two windows start from the same config, but a frame can match even if a mutation changes state that is not visible yet. Compare the initial snapshots and the mutation results and snapshots after each step. A failure would then identify generator drift separately from a layout-cache failure.

Based on learnings, verify that separate instances initialized with the same seed produce the same sequence. The existing config-sampling test does not check the tree mutation sequence.

Source: Learnings

@nolight132
nolight132 merged commit 9f6b3c8 into master Nov 26, 2026
3 checks passed
@nolight132
nolight132 deleted the chore/gpui-sync-zed-cd58537 branch November 26, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linux changes the Linux backend rendering changes the scene, shaders or a renderer text changes text shaping, layout or rasterising windows changes the Windows backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant