mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
d368028bd5
Since we only use the backend capabilities here we can simply pass them in directly. This allows other locations to create an allocator even if they don't have a backend. They can simply specify the caps they want instead.
9 lines
242 B
C
9 lines
242 B
C
#ifndef RENDER_ALLOCATOR_ALLOCATOR_H
|
|
#define RENDER_ALLOCATOR_ALLOCATOR_H
|
|
|
|
#include <wlr/render/allocator.h>
|
|
|
|
struct wlr_allocator *allocator_autocreate_with_drm_fd(
|
|
uint32_t backend_caps, struct wlr_renderer *renderer, int drm_fd);
|
|
|
|
#endif
|