render/gles2: move list of supported WL formats to pixel_format.c

This commit is contained in:
emersion 2018-03-21 08:50:59 +01:00
parent 3581573bdc
commit cc5ef1d2ff
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 24 additions and 12 deletions

View file

@ -21,6 +21,7 @@ struct gles2_pixel_format {
uint32_t wl_format;
GLint gl_format, gl_type;
int depth, bpp;
bool has_alpha;
};
struct wlr_gles2_renderer {
@ -48,6 +49,7 @@ struct wlr_gles2_texture {
};
const struct gles2_pixel_format *gles2_format_from_wl(enum wl_shm_format fmt);
const enum wl_shm_format *gles2_formats(size_t *len);
struct wlr_texture *gles2_texture_create();
struct wlr_gles2_texture *gles2_get_texture(struct wlr_texture *wlr_texture);