Move allocator stuff into new directory

Add render/allocator/ and include/render/allocator/ to hold
everything allocator-related.
This commit is contained in:
Simon Ser 2021-08-25 09:33:19 +02:00 committed by Simon Zeni
parent b37731cdbb
commit 3ce2ea9e16
17 changed files with 35 additions and 34 deletions

View file

@ -1,9 +1,8 @@
#ifndef RENDER_ALLOCATOR
#define RENDER_ALLOCATOR
#ifndef RENDER_ALLOCATOR_ALLOCATOR_H
#define RENDER_ALLOCATOR_ALLOCATOR_H
#include <stdbool.h>
#include <wayland-server-core.h>
#include <wlr/render/dmabuf.h>
#include <wlr/render/drm_format_set.h>
struct wlr_allocator;

View file

@ -1,9 +1,9 @@
#ifndef RENDER_DRM_DUMB_ALLOCATOR_H
#define RENDER_DRM_DUMB_ALLOCATOR_H
#include "render/allocator.h"
#ifndef RENDER_ALLOCATOR_DRM_DUMB_H
#define RENDER_ALLOCATOR_DRM_DUMB_H
#include <wlr/render/dmabuf.h>
#include <wlr/types/wlr_buffer.h>
#include "render/allocator/allocator.h"
struct wlr_drm_dumb_buffer {
struct wlr_buffer base;

View file

@ -1,9 +1,10 @@
#ifndef RENDER_GBM_ALLOCATOR_H
#define RENDER_GBM_ALLOCATOR_H
#ifndef RENDER_ALLOCATOR_GBM_H
#define RENDER_ALLOCATOR_GBM_H
#include <gbm.h>
#include <wlr/render/dmabuf.h>
#include <wlr/types/wlr_buffer.h>
#include "render/allocator.h"
#include "render/allocator/allocator.h"
struct wlr_gbm_buffer {
struct wlr_buffer base;

View file

@ -1,8 +1,8 @@
#ifndef RENDER_SHM_ALLOCATOR_H
#define RENDER_SHM_ALLOCATOR_H
#ifndef RENDER_ALLOCATOR_SHM_H
#define RENDER_ALLOCATOR_SHM_H
#include <wlr/types/wlr_buffer.h>
#include "render/allocator.h"
#include "render/allocator/allocator.h"
struct wlr_shm_buffer {
struct wlr_buffer base;