[PATCH wayland 1/2] protocol: document error cases with wl_shm_pool.create_buffer
Jonny Lamb
jonny.lamb at collabora.co.uk
Thu Nov 21 08:42:28 PST 2013
This already happens in weston.
---
protocol/wayland.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 61fde84..a9c8e53 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -220,6 +220,11 @@
A buffer will keep a reference to the pool it was created from
so it is valid to destroy the pool immediately after creating
a buffer from it.
+
+ If offset is negative, width or height are not greater than
+ zero, or the stride is less than the width the invalid_stride
+ protocol error is raised. If the format is not supported the
+ invalid_format protocol error is raised.
</description>
<arg name="id" type="new_id" interface="wl_buffer"/>
--
1.8.4.2
More information about the wayland-devel
mailing list