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>
11f469b
Construct Metal command encoder inside of `Renderer`
Click to expand commit body
Co-Authored-By: Max Brunsfeld <max@zed.dev>
Antonio Scandurra
and
Max Brunsfeld
created
a88b63d
Ensure `FoldMap` always contains at least one transform
Click to expand commit body
Previously, when splicing an edit that deleted all transforms, we would
leave the `FoldMap` empty, thus violating a bunch of downstream
invariants and e.g. causing the `BufferRows` iterator to not return any
buffer row.
This commit ensures we always have at least one transform (an isomorphic
one, specifically) and adds additional test coverage for the
`FoldMap::buffer_rows` method by adding it to the randomized tests.
Antonio Scandurra
created
a949959
Merge pull request #1 from zed-industries/catalina-mps-compatibility
Click to expand commit body
Avoid nested structs in the types used to pass data from vertex to fragment shader functions
Antonio Scandurra
created
8a119a5
Avoid nested structs in vertex function return types
Click to expand commit body
This is required to compile successfully on macos versions <= 10.15 (catalina)
Max Brunsfeld
created
a279048
Pass the right bounds when painting gutter
Click to expand commit body
x and y were flipped around, yikes.
Antonio Scandurra
created
2c24ec2
Update old usages of `ctx.spawn` to detach the associated task
Click to expand commit body
This lets us open buffers and renders tabs and editors correctly, modulo
a small bug when rendering the gutter that I am going to fix next.