diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-01-01 23:14:12 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-01-01 23:14:12 -0800 |
commit | 9e6c1726de883b042725ea6630bc4d95e526879a (patch) | |
tree | 36573bc9591947d7a21e67c0ee525c1361273e3c /src/fb.h | |
parent | 9618a7cca221e8959a920ec13148a7e6bd2e9b7a (diff) |
fb: switch over to fb_ops_t abstraction
Remove everything drm-related from fb.c, utilizing the implementation in
drm_fb.c instead.
Diffstat (limited to 'src/fb.h')
-rw-r--r-- | src/fb.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -3,8 +3,6 @@ #include <stdint.h> #include <string.h> -#include <sys/types.h> -#include <xf86drmMode.h> /* for drmModeModeInfoPtr */ /* All renderers should target fb_fragment_t, which may or may not represent * a full-screen mmap. Helpers are provided for subdividing fragments for @@ -43,7 +41,7 @@ fb_page_t * fb_page_get(fb_t *fb); void fb_page_put(fb_t *fb, fb_page_t *page); void fb_free(fb_t *fb); void fb_get_put_pages_count(fb_t *fb, unsigned *count); -fb_t * fb_new(int drm_fd, uint32_t crtc_id, uint32_t *connectors, int n_connectors, drmModeModeInfoPtr mode, int n_pages); +fb_t * fb_new(const fb_ops_t *ops, void *context, int n_pages); void fb_fragment_divide(fb_fragment_t *fragment, unsigned n_fragments, fb_fragment_t fragments[]); int fb_fragment_slice_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment); int fb_fragment_tile_single(const fb_fragment_t *fragment, unsigned tile_size, unsigned num, fb_fragment_t *res_fragment); |