mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
drm backend: add wlr_output_is_drm
This commit is contained in:
parent
dabfe159de
commit
be95147385
3 changed files with 6 additions and 1 deletions
|
|
@ -658,6 +658,10 @@ static struct wlr_output_impl output_impl = {
|
|||
.get_gamma_size = wlr_drm_connector_get_gamma_size,
|
||||
};
|
||||
|
||||
bool wlr_output_is_drm(struct wlr_output *output) {
|
||||
return output->impl == &output_impl;
|
||||
}
|
||||
|
||||
static int retry_pageflip(void *data) {
|
||||
struct wlr_drm_connector *conn = data;
|
||||
wlr_log(L_INFO, "%s: Retrying pageflip", conn->output.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue