diff options
author | Simon Ser <contact@emersion.fr> | 2019-04-23 19:26:21 +0300 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-23 14:34:30 -0600 |
commit | 9a0f8a194caa35173a7f590208a64a5526290935 (patch) | |
tree | 2acebd17a1de27d3d616b2bd13a65301cff9fca5 /backend/noop | |
parent | 23e37e7b1d8004fb5361c147239d2e628efbd5e8 (diff) |
output: refactor backend API
This updates the backend part of the output API. This is mostly renaming:
make_current becomes attach_render and swap_buffers becomes commit.
This also fixes the RDP backend to support NULL damage.
Diffstat (limited to 'backend/noop')
-rw-r--r-- | backend/noop/output.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/noop/output.c b/backend/noop/output.c index 5d9aa90d..7273095d 100644 --- a/backend/noop/output.c +++ b/backend/noop/output.c @@ -23,12 +23,12 @@ static bool output_set_custom_mode(struct wlr_output *wlr_output, return true; } -static bool output_make_current(struct wlr_output *wlr_output, int *buffer_age) { +static bool output_attach_render(struct wlr_output *wlr_output, + int *buffer_age) { return true; } -static bool output_swap_buffers(struct wlr_output *wlr_output, - pixman_region32_t *damage) { +static bool output_commit(struct wlr_output *wlr_output) { return true; } @@ -45,8 +45,8 @@ static const struct wlr_output_impl output_impl = { .transform = output_transform, .set_custom_mode = output_set_custom_mode, .destroy = output_destroy, - .make_current = output_make_current, - .swap_buffers = output_swap_buffers, + .attach_render = output_attach_render, + .commit = output_commit, }; bool wlr_output_is_noop(struct wlr_output *wlr_output) { |