summaryrefslogtreecommitdiff
path: root/src/til_fb.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-04-19 15:36:06 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-04-19 15:36:06 -0700
commit53d4d504b9103f524c50385ed3545fd08d0e272e (patch)
tree3f540f6bd1a0c6eb6301f15ebf3376e9c6fdaf68 /src/til_fb.h
parentca14c4bf346a200ab8a66be293d8e71d49e09e32 (diff)
*: s/til_fb_fragment_zero/til_fb_fragment_clear/
Mechanical renaming of "zero" to "clear" throughout for this context.
Diffstat (limited to 'src/til_fb.h')
-rw-r--r--src/til_fb.h10
1 files changed, 5 insertions, 5 deletions
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
© All Rights Reserved