[PATCH 2/3] add filter interface (resize) to wl_surface

Zhao Halley halley.zhao at intel.com
Fri Jun 8 02:33:57 PDT 2012


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

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index a15b5d0..5619d45 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -692,6 +692,48 @@
       <arg name="region" type="object" interface="wl_region"/>
     </request>
 
+    <enum name="resize_filter">
+     <entry name="mag" value="0x1"/>
+     <entry name="min" value="0x2"/>
+    </enum>
+
+    <enum name="resize_sampling">
+     <entry name="nearest" value="0x1"/>
+     <entry name="linear" value="0x2"/>
+     <entry name="mag_filter_clamp" value="0x4"/>
+     <entry name="mag_filter_center" value="0x8"/>
+     <entry name="min_filter_clip" value="0x10"/>
+    </enum>
+
+    <request name="get_render_attr_caps">
+      <description summary="get server's capability on giving render attribute type">
+	Get server's capability on giving render attribute type, 
+	attr_value are returned with all available rendering type combinedi('|'). 
+	no 'struct wl_surface *' is required. 
+      </description>
+
+      <arg name="attr_type" type="uint"/>
+      <arg name="attr_values" type="uint*"/> 
+    </request>
+
+    <request name="set_render_attr">
+      <description summary="set attributes which controls display details">
+	Set attributes which controls display details, interpolation filter type for example. 
+      </description>
+
+      <arg name="attr_type" type="uint"/>
+      <arg name="attr_value" type="uint"/>
+    </request>
+
+    <request name="get_render_attr">
+      <description summary="get attributes which controls display details">
+	Get attributes which controls display details, interpolation filter type for example. 
+      </description>
+
+      <arg name="attr_type" type="uint"/>
+      <arg name="attr_value" type="uint*"/> 
+    </request>
+ 
     <event name="enter">
       <description summary="surface enters an output">
         This is emitted whenever a surface's creation, movement, or resizing
-- 
1.7.5.4



More information about the wayland-devel mailing list