weston/src
Jason Ekstrand a7af70436b Split the geometry information from weston_surface out into weston_view
The weston_surface structure is split into two structures:

 * The weston_surface structure storres everything required for a
   client-side or server-side surface.  This includes buffers; callbacks;
   backend private data; input, damage, and opaque regions; and a few other
   bookkeeping bits.

 * The weston_view structure represents an entity in the scenegraph and
   storres all of the geometry information.  This includes clip region,
   alpha, position, and the transformation list as well as all of the
   temporary information derived from the geometry state.  Because a view,
   and not a surface, is a scenegraph element, the view is what is placed
   in layers and planes.

There are a few things worth noting about the surface/view split:

 1. This is *not* a modification to the protocol.  It is, instead, a
    modification to Weston's internal scenegraph to allow a single surface
    to exist in multiple places at a time.  Clients are completely unaware
    of how many views to a particular surface exist.

 2. A view is considered a direct child of a surface and is destroyed when
    the surface is destroyed.  Because of this, the view.surface pointer is
    always valid and non-null.

 3. The compositor's surface_list is replaced with a view_list.  Due to
    subsurfaces, building the view list is a little more complicated than
    it used to be and involves building a tree of views on the fly whenever
    subsurfaces are used.  However, this means that backends can remain
    completely subsurface-agnostic.

 4. Surfaces and views both keep track of which outputs they are on.

 5. The weston_surface structure now has width and height fields.  These
    are populated when a new buffer is attached before surface.configure
    is called.  This is because there are many surface-based operations
    that really require the width and height and digging through the views
    didn't work well.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
2013-10-22 13:34:11 -07:00
..
xwayland Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
.gitignore protocol: add sub-surfaces 2013-05-10 14:05:59 -04:00
animation.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
bindings.c Add a touch binding to activate a surface 2013-10-14 13:53:08 -07:00
clipboard.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
cms-colord.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
cms-helper.c configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS 2013-06-05 01:16:34 -04:00
cms-helper.h Add more missing config.h includes 2013-08-16 10:56:00 -07:00
cms-static.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
compositor-drm.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
compositor-fbdev.c compositor: Remove redundant and not well-defined focus field 2013-10-22 12:40:54 -07:00
compositor-headless.c compositor: finish frame if redraw fails 2013-10-22 12:24:56 -07:00
compositor-rdp.c compositor: finish frame if redraw fails 2013-10-22 12:24:56 -07:00
compositor-rpi.c compositor: Remove redundant and not well-defined focus field 2013-10-22 12:40:54 -07:00
compositor-wayland.c compositor: finish frame if redraw fails 2013-10-22 12:24:56 -07:00
compositor-x11.c compositor: finish frame if redraw fails 2013-10-22 12:24:56 -07:00
compositor.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
compositor.h Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
data-device.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
dbus.c dbus: add dbus-match helpers 2013-10-21 16:07:10 -07:00
dbus.h dbus: add dbus-match helpers 2013-10-21 16:07:10 -07:00
evdev-touchpad.c evdev: Only track one pending event 2013-09-24 16:22:19 -07:00
evdev.c compositor: Remove redundant and not well-defined focus field 2013-10-22 12:40:54 -07:00
evdev.h evdev: Reference count input device's seat capabilities 2013-10-21 13:45:03 -07:00
filter.c configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS 2013-06-05 01:16:34 -04:00
filter.h Add more missing config.h includes 2013-08-16 10:56:00 -07:00
gl-renderer.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
gl-renderer.h gl-renderer: Build as a loadable module 2013-10-14 15:02:20 -07:00
input.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
launcher-util.c logind: Remove missing 'else' 2013-10-22 13:19:23 -07:00
launcher-util.h launcher: add logind backend 2013-10-21 16:23:58 -07:00
libbacklight.c configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS 2013-06-05 01:16:34 -04:00
libbacklight.h Fix a few -pedantic warnings 2012-05-10 14:11:44 -04:00
log.c Use #define WL_HIDE_DEPRECATED to avoid deprecated warnings for wl_buffer 2013-08-06 19:27:04 -07:00
logind-util.c launcher: add logind backend 2013-10-21 16:23:58 -07:00
logind-util.h launcher: add logind backend 2013-10-21 16:23:58 -07:00
Makefile.am launcher: add logind backend 2013-10-21 16:23:58 -07:00
noop-renderer.c Add a weston_buffer structure to replace wl_buffer 2013-06-21 23:22:30 -04:00
pixman-renderer.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
pixman-renderer.h Add more missing config.h includes 2013-08-16 10:56:00 -07:00
rpi-bcm-stubs.h rpi: Add support for EGL buffers 2013-10-08 11:19:25 -07:00
rpi-renderer.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
rpi-renderer.h rpi: add a Dispmanx renderer 2013-05-22 17:05:45 -04:00
screenshooter.c Rename current, origin, scale, origin_scale 2013-09-21 11:40:17 -07:00
shell.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
spring-tool.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
tablet-shell.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00
text-backend.c Copying xkb_info when creating a seat causes problems 2013-09-11 10:06:23 -07:00
udev-seat.c launcher: add weston_launcher_close() dummy 2013-10-21 16:07:45 -07:00
udev-seat.h udev-seat: Repick seat after a new device was added 2013-10-21 13:47:05 -07:00
vaapi-recorder.c vaapi-recorder: Don't leak fd on thread error path 2013-10-10 16:50:18 -07:00
vaapi-recorder.h compositor-drm: Add hardware accelerated capture of screen using libva 2013-08-30 13:44:40 -07:00
version.h.in version.h: Add version check macro 2013-09-23 10:42:19 -07:00
vertex-clipping.c Split vertex clipping code out into vertex-clipping.c 2013-09-16 21:40:31 -07:00
vertex-clipping.h Split vertex clipping code out into vertex-clipping.c 2013-09-16 21:40:31 -07:00
weston-egl-ext.h weston-egl: Update weston-egl-ext.h: s/wl_buffer/wl_resource 2013-10-01 10:42:55 -07:00
weston-launch.c weston-launch: Use /bin/sh for launching weston 2013-10-21 15:14:44 -07:00
weston-launch.h launcher: Handle drm set/drop master and vt switch signals in launcher 2013-09-18 11:14:14 -07:00
weston.pc.in weston.pc: Added libexecdir and pkglibexecdir variables 2013-06-04 00:14:04 -04:00
zoom.c Split the geometry information from weston_surface out into weston_view 2013-10-22 13:34:11 -07:00