glamor: Expose glamor_destroy_pixmap()
When we create a glamor pixmap by calling glamor_create_pixmap() directly, we need to call glamor_destroy_pixmap() to destroy it. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
d148034375
commit
e738276e96
|
@ -143,6 +143,7 @@ extern _X_EXPORT void glamor_block_handler(ScreenPtr screen);
|
||||||
|
|
||||||
extern _X_EXPORT PixmapPtr glamor_create_pixmap(ScreenPtr screen, int w, int h,
|
extern _X_EXPORT PixmapPtr glamor_create_pixmap(ScreenPtr screen, int w, int h,
|
||||||
int depth, unsigned int usage);
|
int depth, unsigned int usage);
|
||||||
|
extern _X_EXPORT Bool glamor_destroy_pixmap(PixmapPtr pixmap);
|
||||||
|
|
||||||
#define GLAMOR_CREATE_PIXMAP_CPU 0x100
|
#define GLAMOR_CREATE_PIXMAP_CPU 0x100
|
||||||
#define GLAMOR_CREATE_PIXMAP_FIXUP 0x101
|
#define GLAMOR_CREATE_PIXMAP_FIXUP 0x101
|
||||||
|
|
|
@ -584,8 +584,6 @@ extern int glamor_debug_level;
|
||||||
/* glamor.c */
|
/* glamor.c */
|
||||||
PixmapPtr glamor_get_drawable_pixmap(DrawablePtr drawable);
|
PixmapPtr glamor_get_drawable_pixmap(DrawablePtr drawable);
|
||||||
|
|
||||||
Bool glamor_destroy_pixmap(PixmapPtr pixmap);
|
|
||||||
|
|
||||||
glamor_pixmap_fbo *glamor_pixmap_detach_fbo(glamor_pixmap_private *
|
glamor_pixmap_fbo *glamor_pixmap_detach_fbo(glamor_pixmap_private *
|
||||||
pixmap_priv);
|
pixmap_priv);
|
||||||
void glamor_pixmap_attach_fbo(PixmapPtr pixmap, glamor_pixmap_fbo *fbo);
|
void glamor_pixmap_attach_fbo(PixmapPtr pixmap, glamor_pixmap_fbo *fbo);
|
||||||
|
|
Loading…
Reference in New Issue