wayland: Make the surface actor set its own state

Desktop / GNOME / Mutter - Jonas Ådahl [gmail.com] - 3 March 2015 13:53 UTC

Since the surface actor knows more about how it draws itself, instead of pushing texture state (buffer and scale), input region and opaque region from MetaWaylandSurface after having transformed into what the surface actor expects, make the surface actor set its own state given what state the Wayland surface is in.

https://bugzilla.gnome.org/show_bug.cgi?id=744933

bbcee17 wayland: Make the surface actor set its own state
src/compositor/meta-surface-actor-wayland.c | 49 ++++++++++++++++++++++---
src/compositor/meta-surface-actor-wayland.h | 3 +-
src/compositor/region-utils.c | 29 +++++++++++++++
src/compositor/region-utils.h | 2 ++
src/wayland/meta-wayland-surface.c | 51 ++++++++-------------------
src/wayland/meta-wayland-surface.h | 2 ++
6 files changed, 94 insertions(+), 42 deletions(-)

Upstream: git.gnome.org


  • Share