[PATCH 0/4] add resize support for wl_surface damage

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


overlay plane supports rendering with resize, while wayland protocol 
doesn't have interface for it yet. so I go ahead to add it and ask for 
your comments.
this interface also has potential benefit for memory footprint: 
for example: when surface size is bigger than original content (an image 
maybe), client needn't create a new buffer to scale it, but depending
on weston to handle it.

basing on it, I would like add more policy on how to assign a surface to
overlay plane. for example, the surface with following attribute should 
have a higher priority to render to overlay plane:
    YUV format (YUYV indeed for GEN gfx)
    render with scaling required
    surface update with a higher frequency
    surface has other surfaces behind it

these patches include 3 parts:
    1. wayland protocol file update
    2. weston update to support new api
    3. test case update (test case in $mesa/test2/wayland-drm, the case hasn't commited to upstream yet)
        http://lists.freedesktop.org/archives/mesa-dev/2012-June/022544.html

== wayland ==
Zhao Halley (1):
  add damage2 api

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

-- 
1.7.5.4

== weston ==
Zhao Halley (1):
  add surface_damage2 to support resize

Zhao halley (1):
  test purpose:       filter out background/cursor/shell surface      
    disable geometry transform for overlay

 src/compositor-drm.c |   45 ++++++++++++++++++++++++--------
 src/compositor.c     |   70 ++++++++++++++++++++++++++++++++++---------------
 src/compositor.h     |    9 +++++-
 src/shell.c          |   53 ++++++++++++++++++++-----------------
 src/util.c           |    8 +++---
 5 files changed, 123 insertions(+), 62 deletions(-)
 mode change 100644 => 100755 src/compositor-drm.c
 mode change 100644 => 100755 src/compositor.c
 mode change 100644 => 100755 src/compositor.h
 mode change 100644 => 100755 src/shell.c
 mode change 100644 => 100755 src/util.c

-- 
1.7.5.4

== mesa ==
Zhao Halley (1):
  use wl_surface_damage2 for resize

 tests/wayland-drm/wayland-drm-test.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

-- 
1.7.5.4



More information about the wayland-devel mailing list