diff options
author | André Almeida <andrealmeid@igalia.com> | 2022-05-20 17:35:30 -0300 |
---|---|---|
committer | Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> | 2022-05-24 11:56:41 -0400 |
commit | 5882a2b834fafb99e8d67ab713234f930f08e4d0 (patch) | |
tree | 6918e18c668851a9a870e5f5916dd6bb6cd73982 /lib/igt_fb.h | |
parent | f91af0ee70ed290890d122ece6b3857222f985b0 (diff) |
lib/igt_fb: Add support for drawing rectangles with random colors
Add support for drawing rectangles with random colors, useful for tests
that you don't mind which color will be used.
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r-- | lib/igt_fb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h index 623a8caa..b3f096fe 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -191,6 +191,7 @@ cairo_t *igt_get_cairo_ctx(int fd, struct igt_fb *fb); void igt_put_cairo_ctx(cairo_t *cr); void igt_paint_color(cairo_t *cr, int x, int y, int w, int h, double r, double g, double b); +void igt_paint_color_rand(cairo_t *cr, int x, int y, int w, int h); void igt_paint_color_alpha(cairo_t *cr, int x, int y, int w, int h, double r, double g, double b, double a); void igt_paint_color_gradient(cairo_t *cr, int x, int y, int w, int h, |