[Intel-gfx] [PATCH 04/12] lib/igt_kms: make kmstest_get_cairo_surface static
Daniel Vetter
daniel.vetter at ffwll.ch
Wed Mar 26 17:15:47 CET 2014
Only used internally in igt_kms.c.
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
lib/igt_kms.c | 2 +-
lib/igt_kms.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index ad97606f445a..c990389b9905 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 519fea02e800..e40fd0afd666 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,
--
1.8.5.2
More information about the Intel-gfx
mailing list