summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-23 16:53:14 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-26 18:50:27 +0100
commitef107940bb1f1aaa8608d5c7f6840a9990706dec (patch)
tree0a3e7b321f2c3b2b4a188618212d3f5bf0b85ad4
parent2fc2fa547190f1ba6083ffab67f9ebfb077a544d (diff)
lib/igt_kms: make kmstest_get_cairo_surface static
Only used internally in igt_kms.c. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--lib/igt_kms.c2
-rw-r--r--lib/igt_kms.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index ad97606f..c990389b 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -374,7 +374,7 @@ static void __kmstest_destroy_cairo_surface(void *arg)
munmap(cairo_image_surface_get_data(fb->cairo_surface), fb->size);
}
-cairo_surface_t *kmstest_get_cairo_surface(int fd, struct kmstest_fb *fb)
+static cairo_surface_t *kmstest_get_cairo_surface(int fd, struct kmstest_fb *fb)
{
if (fb->cairo_surface == NULL) {
fb->cairo_surface =
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 519fea02..e40fd0af 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -85,7 +85,6 @@ unsigned int kmstest_create_color_fb(int fd, int width, int height,
struct kmstest_fb *fb /* out */);
void kmstest_remove_fb(int fd, struct kmstest_fb *fb_info);
cairo_t *kmstest_get_cairo_ctx(int fd, struct kmstest_fb *fb);
-cairo_surface_t *kmstest_get_cairo_surface(int fd, struct kmstest_fb *fb);
void kmstest_paint_color(cairo_t *cr, int x, int y, int w, int h,
double r, double g, double b);
void kmstest_paint_color_alpha(cairo_t *cr, int x, int y, int w, int h,