wayland: Move some buffer manipulation functions to meta-wayland-buffer

This commit is contained in:
Jasper St. Pierre
2014-10-07 19:48:49 -07:00
parent c1613a16c0
commit f658740043
3 changed files with 68 additions and 38 deletions

View File

@ -26,6 +26,7 @@
#define META_WAYLAND_BUFFER_H
#include <cogl/cogl.h>
#include <cairo.h>
#include <wayland-server.h>
#include "meta-wayland-types.h"
@ -43,5 +44,8 @@ struct _MetaWaylandBuffer
MetaWaylandBuffer * meta_wayland_buffer_from_resource (struct wl_resource *resource);
void meta_wayland_buffer_ref (MetaWaylandBuffer *buffer);
void meta_wayland_buffer_unref (MetaWaylandBuffer *buffer);
CoglTexture * meta_wayland_buffer_ensure_texture (MetaWaylandBuffer *buffer);
void meta_wayland_buffer_process_damage (MetaWaylandBuffer *buffer,
cairo_region_t *region);
#endif /* META_WAYLAND_BUFFER_H */