[PATCH wayland 1/2] protocol: document error cases with wl_shm_pool.create_buffer

Jonny Lamb jonny.lamb at collabora.co.uk
Fri May 30 03:08:15 PDT 2014


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 22eb6e7..3091d83 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -222,6 +222,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"/>
-- 
2.0.0



More information about the wayland-devel mailing list