|
|
|
@ -684,14 +684,10 @@ bool wlr_output_test_state(struct wlr_output *output,
|
|
|
|
|
if (!output_ensure_buffer(output, ©, &new_back_buffer)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (new_back_buffer) {
|
|
|
|
|
assert((copy.committed & WLR_OUTPUT_STATE_BUFFER) == 0);
|
|
|
|
|
copy.committed |= WLR_OUTPUT_STATE_BUFFER;
|
|
|
|
|
copy.buffer = output->back_buffer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool success = output->impl->test(output, ©);
|
|
|
|
|
if (new_back_buffer) {
|
|
|
|
|
wlr_buffer_unlock(copy.buffer);
|
|
|
|
|
output_clear_back_buffer(output);
|
|
|
|
|
}
|
|
|
|
|
return success;
|
|
|
|
@ -728,8 +724,6 @@ bool wlr_output_commit_state(struct wlr_output *output,
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (new_back_buffer) {
|
|
|
|
|
assert((pending.committed & WLR_OUTPUT_STATE_BUFFER) == 0);
|
|
|
|
|
wlr_output_state_set_buffer(&pending, output->back_buffer);
|
|
|
|
|
output_clear_back_buffer(output);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|