romangg created this revision. romangg added a reviewer: KWin. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. romangg requested review of this revision.
REVISION SUMMARY Missing from our surface handling was the damage_buffer call introduced in version 4 of the wl_compositor interface. Its only difference to a normal damage call is that the damaged region is supposed to be defined by the client in buffer coordinates instead of surface coordinates. This damage must be tracked separately in KWayland and on commit with the buffer transformation united with the normal damage. TEST PLAN Autotest updated. REPOSITORY R127 KWayland BRANCH damageBuffer REVISION DETAIL https://phabricator.kde.org/D15910 AFFECTED FILES autotests/client/test_wayland_surface.cpp src/client/registry.cpp src/client/surface.cpp src/client/surface.h src/server/compositor_interface.cpp src/server/surface_interface.cpp src/server/surface_interface_p.h To: romangg, #kwin Cc: kde-frameworks-devel, michaelh, ngraham, bruns