summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-10-18 21:34:45 -0700
committerEric Anholt <eric@anholt.net>2015-11-06 12:28:03 -0800
commit70b4fe7e3fb9d605c428109cd959d3ddbd0781cb (patch)
tree22e4449b0bdc4737cbb9ec5e7c5b90796ff0a22f
parent3e216d80987305784784cd219f8a0f8dad4c24bc (diff)
glamor: Unexport glamor_destroy_textured_pixmap().
This is just a bit of the DestroyPixmap chain. Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r--glamor/glamor.c9
-rw-r--r--glamor/glamor.h1
2 files changed, 2 insertions, 8 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c
index d4a023629..dbaee46b9 100644
--- a/glamor/glamor.c
+++ b/glamor/glamor.c
@@ -202,8 +202,8 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
return pixmap;
}
-void
-glamor_destroy_textured_pixmap(PixmapPtr pixmap)
+Bool
+glamor_destroy_pixmap(PixmapPtr pixmap)
{
if (pixmap->refcnt == 1) {
#if GLAMOR_HAS_GBM
@@ -211,12 +211,7 @@ glamor_destroy_textured_pixmap(PixmapPtr pixmap)
#endif
glamor_pixmap_destroy_fbo(pixmap);
}
-}
-Bool
-glamor_destroy_pixmap(PixmapPtr pixmap)
-{
- glamor_destroy_textured_pixmap(pixmap);
return fbDestroyPixmap(pixmap);
}
diff --git a/glamor/glamor.h b/glamor/glamor.h
index 54fec1d26..6d135df41 100644
--- a/glamor/glamor.h
+++ b/glamor/glamor.h
@@ -110,7 +110,6 @@ extern _X_EXPORT void glamor_set_pixmap_texture(PixmapPtr pixmap,
extern _X_EXPORT void glamor_set_pixmap_type(PixmapPtr pixmap,
glamor_pixmap_type_t type);
-extern _X_EXPORT void glamor_destroy_textured_pixmap(PixmapPtr pixmap);
extern _X_EXPORT void glamor_block_handler(ScreenPtr screen);
extern _X_EXPORT PixmapPtr glamor_create_pixmap(ScreenPtr screen, int w, int h,