# Remove more \`Send\` bounds and simplify view rendering \(\#3207\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/87933004445f2d8d2d2ee8d063f4cf62f845b716)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 87933004445f2d8d2d2ee8d063f4cf62f845b716

Requested commit: 87933004445f2d8d2d2ee8d063f4cf62f845b716

Commit: 87933004445f2d8d2d2ee8d063f4cf62f845b716

Tree: dd1f969bcf7a7e5f95cbfe65fa66f97ee93220cf

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Remove more `Send` bounds and simplify view rendering (#3207)

This pull request removes more `Send` bounds from GPUI2 after #3206 and
simplifies some internals. Specifically:

- The `Reference` enum was removed, as we always capture mutable
references anyway.
- A few GATs from `Context` and `VisualContext` were removed, as they're
unnecessary now that `MainThread` isn't a thing.
- View rendering was greatly simplified (we were able to remove
`EraseViewState` and `ViewObject`)

Release Notes:

- N/A
```

## Parents

- [6cab5c28851164e169107cb97fa0be626f67e936](https://git.cafe/gitcafe/zed/commit/6cab5c28851164e169107cb97fa0be626f67e936?format=markdown)

- [9c7b45f38bdc140e8778543375ded0220478a5df](https://git.cafe/gitcafe/zed/commit/9c7b45f38bdc140e8778543375ded0220478a5df?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/87933004445f2d8d2d2ee8d063f4cf62f845b716?format=markdown)
