mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 07:46:15 +00:00
lib/drmtest: Add kmstest_paint_color_alpha()
kmstest_paint_color_alpha() just like kmstest_paint_color() except you also get to specify the alpha channel. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
e98a06d593
commit
471ec64de8
@ -1367,6 +1367,14 @@ void kmstest_paint_color(cairo_t *cr, int x, int y, int w, int h,
|
|||||||
cairo_fill(cr);
|
cairo_fill(cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void kmstest_paint_color_alpha(cairo_t *cr, int x, int y, int w, int h,
|
||||||
|
double r, double g, double b, double a)
|
||||||
|
{
|
||||||
|
cairo_rectangle(cr, x, y, w, h);
|
||||||
|
cairo_set_source_rgba(cr, r, g, b, a);
|
||||||
|
cairo_fill(cr);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
kmstest_paint_color_gradient(cairo_t *cr, int x, int y, int w, int h,
|
kmstest_paint_color_gradient(cairo_t *cr, int x, int y, int w, int h,
|
||||||
int r, int g, int b)
|
int r, int g, int b)
|
||||||
|
@ -363,6 +363,8 @@ void kmstest_remove_fb(int fd, struct kmstest_fb *fb_info);
|
|||||||
cairo_t *kmstest_get_cairo_ctx(int fd, struct kmstest_fb *fb);
|
cairo_t *kmstest_get_cairo_ctx(int fd, struct kmstest_fb *fb);
|
||||||
void kmstest_paint_color(cairo_t *cr, int x, int y, int w, int h,
|
void kmstest_paint_color(cairo_t *cr, int x, int y, int w, int h,
|
||||||
double r, double g, double b);
|
double r, double g, double b);
|
||||||
|
void kmstest_paint_color_alpha(cairo_t *cr, int x, int y, int w, int h,
|
||||||
|
double r, double g, double b, double a);
|
||||||
void kmstest_paint_color_gradient(cairo_t *cr, int x, int y, int w, int h,
|
void kmstest_paint_color_gradient(cairo_t *cr, int x, int y, int w, int h,
|
||||||
int r, int g, int b);
|
int r, int g, int b);
|
||||||
void kmstest_paint_test_pattern(cairo_t *cr, int width, int height);
|
void kmstest_paint_test_pattern(cairo_t *cr, int width, int height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user