diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-10 09:51:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-10 09:51:09 -0500 |
commit | 664d7bfe4eb55556be491bb87f8f1c0135d8cac5 (patch) | |
tree | 07510f38d5176e978fb612f55511a747e32714d0 /include/backend/drm/iface.h | |
parent | 8fc7edd636ce827dc147edc890e483bc3e3e9b09 (diff) | |
parent | 7cb828ac70c0c41005a761d9011f8b0ca8904688 (diff) |
Merge pull request #618 from VincentVanlaer/atomic-gamma
Add atomic gamma control
Diffstat (limited to 'include/backend/drm/iface.h')
-rw-r--r-- | include/backend/drm/iface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/backend/drm/iface.h b/include/backend/drm/iface.h index 4a5d2e9d..15cdf1ab 100644 --- a/include/backend/drm/iface.h +++ b/include/backend/drm/iface.h @@ -27,6 +27,13 @@ struct wlr_drm_interface { // Move the cursor on crtc bool (*crtc_move_cursor)(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc, int x, int y); + // Set the gamma lut on crtc + bool (*crtc_set_gamma)(struct wlr_drm_backend *drm, + struct wlr_drm_crtc *crtc, uint16_t *r, uint16_t *g, uint16_t *b, + uint32_t size); + // Get the gamma lut size of a crtc + uint32_t (*crtc_get_gamma_size)(struct wlr_drm_backend *drm, + struct wlr_drm_crtc *crtc); }; extern const struct wlr_drm_interface atomic_iface; |