aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-10 09:45:18 -0500
committerGitHub <noreply@github.com>2018-02-10 09:45:18 -0500
commit07856580c446607fa55888db8ae75491e0447c20 (patch)
treefe1ab648a792adfd9d66f3975ff093f2ed5a4844 /include/backend
parent039f112c31eea17e45c121db9b470fa36bbf9af9 (diff)
parentbf6d24540000339029a30715f1f72b5b95a45018 (diff)
Merge pull request #619 from emersion/swap-with-damage
Swap buffers with damage
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/drm/renderer.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h
index a3f19fc3..bf0165bc 100644
--- a/include/backend/drm/renderer.h
+++ b/include/backend/drm/renderer.h
@@ -41,14 +41,17 @@ bool wlr_drm_surface_init(struct wlr_drm_surface *surf,
struct wlr_drm_renderer *renderer, uint32_t width, uint32_t height,
uint32_t format, uint32_t flags);
-bool wlr_drm_plane_surfaces_init(struct wlr_drm_plane *plane, struct wlr_drm_backend *drm,
- int32_t width, uint32_t height, uint32_t format);
+bool wlr_drm_plane_surfaces_init(struct wlr_drm_plane *plane,
+ struct wlr_drm_backend *drm, int32_t width, uint32_t height,
+ uint32_t format);
void wlr_drm_surface_finish(struct wlr_drm_surface *surf);
bool wlr_drm_surface_make_current(struct wlr_drm_surface *surf, int *buffer_age);
-struct gbm_bo *wlr_drm_surface_swap_buffers(struct wlr_drm_surface *surf);
+struct gbm_bo *wlr_drm_surface_swap_buffers(struct wlr_drm_surface *surf,
+ pixman_region32_t *damage);
struct gbm_bo *wlr_drm_surface_get_front(struct wlr_drm_surface *surf);
void wlr_drm_surface_post(struct wlr_drm_surface *surf);
-struct gbm_bo *wlr_drm_surface_mgpu_copy(struct wlr_drm_surface *dest, struct gbm_bo *src);
+struct gbm_bo *wlr_drm_surface_mgpu_copy(struct wlr_drm_surface *dest,
+ struct gbm_bo *src);
#endif