window: move buffer type and transform into struct surface
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 13 Feb 2013 14:17:15 +0000 (16:17 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Feb 2013 17:32:49 +0000 (12:32 -0500)
commit02bba7ceb07e30489ce6da2114242bed5cdc6f49
treedd1c938bbb7403cc140911b42f2d117a382eeca1
parent811ec4ff31f8373335a1208beb2cbafa181282b5
window: move buffer type and transform into struct surface

These are surface specifics, since buffers are surface specific.

SURFACE_HINT_RESIZE is moved together to the other SURFACE_* flags, so
that surface_create_surface() would not need two flags arguments.
struct toysurface::prepare vfunc checks for SURFACE_HINT_RESIZE, and
egl_window_surface_create() and shm_surface_create() check for the
non-HINT flags.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c
clients/window.h