mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-08 13:29:45 -05:00
output: rename needs_commit to needs_frame
This new name makes more sense, since it is a request from the backend to get a new frame. In the future a commit may not convey a new frame.
This commit is contained in:
parent
5e6766a165
commit
20690346c7
10 changed files with 31 additions and 31 deletions
|
|
@ -220,10 +220,10 @@ void output_render(struct roots_output *output) {
|
|||
clear_color[0] = clear_color[1] = clear_color[2] = 0;
|
||||
}
|
||||
|
||||
bool needs_swap;
|
||||
bool needs_frame;
|
||||
pixman_region32_t damage;
|
||||
pixman_region32_init(&damage);
|
||||
if (!wlr_output_damage_attach_render(output->damage, &needs_swap, &damage)) {
|
||||
if (!wlr_output_damage_attach_render(output->damage, &needs_frame, &damage)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -232,7 +232,7 @@ void output_render(struct roots_output *output) {
|
|||
.alpha = 1.0,
|
||||
};
|
||||
|
||||
if (!needs_swap) {
|
||||
if (!needs_frame) {
|
||||
// Output doesn't need swap and isn't damaged, skip rendering completely
|
||||
goto damage_finish;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue