From 53d4d504b9103f524c50385ed3545fd08d0e272e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 19 Apr 2022 15:36:06 -0700 Subject: *: s/til_fb_fragment_zero/til_fb_fragment_clear/ Mechanical renaming of "zero" to "clear" throughout for this context. --- src/til_fb.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/til_fb.h') diff --git a/src/til_fb.h b/src/til_fb.h index f441d36..cbca0a7 100644 --- a/src/til_fb.h +++ b/src/til_fb.h @@ -19,7 +19,7 @@ typedef struct til_fb_fragment_t { unsigned stride; /* number of bytes from the end of one row to the start of the next */ unsigned pitch; /* number of bytes separating y from y + 1, including any padding */ unsigned number; /* this fragment's number as produced by fragmenting */ - unsigned zeroed:1; /* if this fragment has been zeroed since last flip */ + unsigned cleared:1; /* if this fragment has been cleared since last flip */ } til_fb_fragment_t; /* This is a page handle object for page flip submission/life-cycle. @@ -101,15 +101,15 @@ static inline void til_fb_fragment_fill(til_fb_fragment_t *fragment, uint32_t pi } -/* zero a fragment */ -static inline void til_fb_fragment_zero(til_fb_fragment_t *fragment) +/* clear a fragment */ +static inline void til_fb_fragment_clear(til_fb_fragment_t *fragment) { - if (fragment->zeroed) + if (fragment->cleared) return; til_fb_fragment_fill(fragment, 0); - fragment->zeroed = 1; + fragment->cleared = 1; } #endif -- cgit v1.2.1