Commit ff33fcdb authored by Martin Flöser's avatar Martin Flöser
Browse files

[server] Provide wl_resource *resource() in BufferInterface

We need to be able to access the wl_resource* to bind it to a texture.
parent b3b4adfe
......@@ -186,5 +186,10 @@ wl_shm_buffer *BufferInterface::shmBuffer()
return d->shmBuffer;
}
wl_resource *BufferInterface::resource() const
{
return d->buffer;
}
}
}
......@@ -46,6 +46,7 @@ public:
SurfaceInterface *surface() const;
wl_shm_buffer *shmBuffer();
wl_resource *resource() const;
/**
* Creates a QImage for the shared memory buffer.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment