summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Ser <[email protected]>2019-04-22 12:42:37 +0300
committerDrew DeVault <[email protected]>2019-04-23 14:34:30 -0600
commit132df104fbfa9e32b955ecfaeba46f0a781c26ed (patch)
tree3994503fbf398057a4a7e962adfe31b8a5bac4fe /render
parent417c67302d2539b397ae568e950651f14ab18d44 (diff)
output: refactor frame submission API
This is necessary for direct scan-out and other upcoming features. This patch changes the output API to look like the wl_surface API. Outputs now have some double-buffered state: the frame to be submitted (currently only wlr_renderer frames are supported) and the damaged region. To attach a pending frame, use wlr_output_attach_render. To set the pending damaged region, use wlr_output_set_damage. To submit the pending state, call wlr_output_commit. This will submit the pending frame to the backend. To migrate from the old API to the new one: - Replace wlr_output_make_current calls by wlr_output_attach_render - Replace wlr_output_swap_buffers calls by wlr_output_set_damage and wlr_output_commit
Diffstat (limited to 'render')
0 files changed, 0 insertions, 0 deletions