mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	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
 |