Files
oak-gpui/crates/gpui2/src
Antonio Scandurra a40515dbb3 Rework frame rendering
This commit replaces the old `previous_frame` and `current_frame` with
a new pair of `rendered_frame` and `next_frame` that are swapped once
we are ready to draw a finished frame.

This makes it clearer when to use which: `rendered_frame` should be used
to query the existing state, whereas `next_frame` should be used and mutated when
redrawing a dirty window.

The change was prompted by a bug I encountered in `FocusHandle::contains`. The
implementation was reading `current_frame`, but that was the wrong field to
access if e.g. we were reading it inside of a `render` function or any other
time while drawing the window.
2023-12-07 12:10:49 +01:00
..
2023-12-06 16:22:25 -08:00
2023-12-06 15:54:08 -08:00
WIP
2023-11-21 12:40:00 -08:00
2023-12-07 12:10:49 +01:00
2023-12-06 23:16:54 -05:00
2023-12-04 17:27:48 +01:00
2023-12-06 12:28:44 -07:00
2023-12-01 19:21:30 +01:00
2023-11-17 13:47:07 -07:00
WIP
2023-11-20 14:46:01 -08:00
2023-11-22 11:19:43 -07:00
2023-12-01 19:21:30 +01:00
2023-12-06 12:28:44 -07:00
2023-12-04 11:20:41 -05:00
2023-10-26 13:52:04 +02:00
2023-12-01 19:21:30 +01:00
2023-11-13 16:51:59 -08:00
2023-12-07 12:10:49 +01:00