[PATCH 1/4 wayland] add damage2 api

Zhao Halley halley.zhao at intel.com
Wed Jun 6 20:33:54 PDT 2012


---
 protocol/wayland.xml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 67ece1b..9f2de9f 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -631,6 +631,22 @@
       <arg name="height" type="int"/>
     </request>
 
+    <request name="damage2">
+      <description summary="mark part of the surface damaged with resize supported">
+	After attaching a new buffer, this request is used to describe
+	the regions where the new buffer is different from the
+	previous buffer and needs to be repainted.  Coordinates are
+	relative to the new buffer.
+      </description>
+
+      <arg name="x" type="int"/>
+      <arg name="y" type="int"/>
+      <arg name="src_width" type="int"/>
+      <arg name="src_height" type="int"/>
+      <arg name="dst_width" type="int"/>
+      <arg name="dst_height" type="int"/>
+    </request>
+
     <request name="frame">
       <description summary="request repaint feedback">
 	Request notification when the next frame is displayed.  Useful
-- 
1.7.5.4



More information about the wayland-devel mailing list