aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cpp-compile-test.cpp
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-11-30 10:55:04 -0600
committerDerek Foreman <derekf@osg.samsung.com>2015-12-03 09:19:08 -0600
commit3384f69ecf043d62a4e036c0353c2daa01d7c4d0 (patch)
tree95ce601c5a80ea4f74ffcd0eab0f3f8f65f7a6a5 /tests/cpp-compile-test.cpp
parentserver: remove redundant include (diff)
downloadwayland-3384f69ecf043d62a4e036c0353c2daa01d7c4d0.tar
wayland-3384f69ecf043d62a4e036c0353c2daa01d7c4d0.tar.gz
wayland-3384f69ecf043d62a4e036c0353c2daa01d7c4d0.tar.bz2
wayland-3384f69ecf043d62a4e036c0353c2daa01d7c4d0.tar.lz
wayland-3384f69ecf043d62a4e036c0353c2daa01d7c4d0.tar.xz
wayland-3384f69ecf043d62a4e036c0353c2daa01d7c4d0.tar.zst
wayland-3384f69ecf043d62a4e036c0353c2daa01d7c4d0.zip
protocol: Add wl_surface.damage_buffer
wl_surface.damage uses surface local co-ordinates. Buffer scale and buffer transforms came along, and EGL surfaces have no understanding of them. Theoretically, clients pass damage rectangles - in Y-inverted surface co-ordinates) to EGLSwapBuffersWithDamage, and the EGL implementation passed them on to wayland. However, for this to work the EGL implementation must be able to flip those rectangles into the space the compositor is expecting, but it's unable to do so because it doesn't know the height of the transformed buffer. So, currently, EGLSwapBuffersWithDamage is unusable and EGLSwapBuffers has to pass (0,0) - (INT32_MAX, INT32_MAX) damage to function. wl_surface.damage_buffer allows damage to be registered on a surface in buffer co-ordinates, avoiding this problem. Credit where it's due, these ideas are not entirely my own: Over a year ago the idea of changing damage co-ordinates to buffer co-ordinates was suggested (by Jason Ekstrand), and it was at least partially rejected and abandoned. At the time it was also suggested (by Pekka Paalanen) that adding a new wl_surface.damage_buffer request was another option. This will eventually resolve: https://bugs.freedesktop.org/show_bug.cgi?id=78190 by making the problem irrelevant. Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
Diffstat (limited to 'tests/cpp-compile-test.cpp')
0 files changed, 0 insertions, 0 deletions