2970e93
Use handles to obtain entities in future callbacks
Click to expand commit body
This guarantees that the spawning entity will be present and simplifies
the logic for obtaining the entity. Now we can forward the results of spawned futures and streams in the same way regardless of whether what spawned them was a model or a view.
Nathan Sobo
created
fda1394
Rename Task -> EntityTask (a BackgroundTask is just a Task)
Now that smol returns the same Task as async_task, we can simply re-export the async_task::Task struct from our executor module.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo
and
Max Brunsfeld
created
72ced45
Remove unused `edge_to_point` calculation in quad shader
Antonio Scandurra
created
d10fc6c
Fix crash when selections exceed the container's bounds
Antonio Scandurra
created
ae447ca
Layout lines and line numbers sequentially
Click to expand commit body
Doing things in parallel has a constant factor associated with it (e.g.,
spawning threads and coordinating them) that dwarves its benefits on a
code path like this where things take < 2-3ms when done sequentially.
Antonio Scandurra
created
995acef
Inset container contents to account for container border
Nathan Sobo
created
e487aa5
Don't render glyphs located outside of `BufferElement`'s bounds
3bd6b92
Introduce a GPUI test platform, get most tests running
Click to expand commit body
There are still two tests that don't pass:
* `gpui::app::tests::test_finish_pending_tasks` hangs
* `editor::buffer_view::tests::test_fold` has an assertion failure
Max Brunsfeld
created
2efc90a
Ensure that path windings are rendered to the right atlas texture
We want to use the source alpha to determine the color of the final
pixel, but we want the final pixels to be fully opaque.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo
and
Max Brunsfeld
created
77b6a29
Optimize grouping of path sprites by layer/atlas
Click to expand commit body
Avoid filtering sprites redundantly on every layer and allocating intermediate vectors to group by atlas.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>