From 6eee5ee05f7936552ffbb2531db85b3c0b225a3c Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 13 Sep 2017 15:17:40 -0700 Subject: fb: s/fb_fragment_divide_single/fb_fragment_slice_single/ Mechanical cosmetic change --- src/fb.c | 2 +- src/fb.h | 2 +- src/modules/julia/julia.c | 2 +- src/modules/plasma/plasma.c | 2 +- src/modules/roto/roto.c | 2 +- src/modules/sparkler/sparkler.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fb.c b/src/fb.c index 250bd37..d9ee0a4 100644 --- a/src/fb.c +++ b/src/fb.c @@ -320,7 +320,7 @@ fb_t * fb_new(int drm_fd, uint32_t crtc_id, uint32_t *connectors, int n_connecto /* helpers for fragmenting incrementally */ -int fb_fragment_divide_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment) +int fb_fragment_slice_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment) { unsigned slice = fragment->height / n_fragments; unsigned yoff = slice * num; diff --git a/src/fb.h b/src/fb.h index 055c609..5cb8676 100644 --- a/src/fb.h +++ b/src/fb.h @@ -36,7 +36,7 @@ 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); void fb_fragment_divide(fb_fragment_t *fragment, unsigned n_fragments, fb_fragment_t fragments[]); -int fb_fragment_divide_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment); +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); diff --git a/src/modules/julia/julia.c b/src/modules/julia/julia.c index f2fb87d..ea97a77 100644 --- a/src/modules/julia/julia.c +++ b/src/modules/julia/julia.c @@ -105,7 +105,7 @@ static int julia_fragmenter(void *context, const fb_fragment_t *fragment, unsign { julia_context_t *ctxt = context; - return fb_fragment_divide_single(fragment, ctxt->n_cpus, num, res_fragment); + return fb_fragment_slice_single(fragment, ctxt->n_cpus, num, res_fragment); } diff --git a/src/modules/plasma/plasma.c b/src/modules/plasma/plasma.c index b9c5cc4..71c5c13 100644 --- a/src/modules/plasma/plasma.c +++ b/src/modules/plasma/plasma.c @@ -63,7 +63,7 @@ static int plasma_fragmenter(void *context, const fb_fragment_t *fragment, unsig { plasma_context_t *ctxt = context; - return fb_fragment_divide_single(fragment, ctxt->n_cpus, num, res_fragment); + return fb_fragment_slice_single(fragment, ctxt->n_cpus, num, res_fragment); } diff --git a/src/modules/roto/roto.c b/src/modules/roto/roto.c index f076188..e859d94 100644 --- a/src/modules/roto/roto.c +++ b/src/modules/roto/roto.c @@ -173,7 +173,7 @@ static int roto_fragmenter(void *context, const fb_fragment_t *fragment, unsigne { roto_context_t *ctxt = context; - return fb_fragment_divide_single(fragment, ctxt->n_cpus, num, res_fragment); + return fb_fragment_slice_single(fragment, ctxt->n_cpus, num, res_fragment); } diff --git a/src/modules/sparkler/sparkler.c b/src/modules/sparkler/sparkler.c index 13b1563..7ffa3d6 100644 --- a/src/modules/sparkler/sparkler.c +++ b/src/modules/sparkler/sparkler.c @@ -63,7 +63,7 @@ static int sparkler_fragmenter(void *context, const fb_fragment_t *fragment, uns { sparkler_context_t *ctxt = context; - return fb_fragment_divide_single(fragment, ctxt->n_cpus, num, res_fragment); + return fb_fragment_slice_single(fragment, ctxt->n_cpus, num, res_fragment); } static void sparkler_prepare_frame(void *context, unsigned ncpus, fb_fragment_t *fragment, rototiller_fragmenter_t *res_fragmenter) -- cgit v1.2.3