wayland: Make the surface actor set its own state

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
This commit is contained in:
Jonas Ådahl
2015-03-02 22:56:35 +08:00
committed by Ray Strode
parent 9c6e6ea381
commit bbcee174ce
6 changed files with 97 additions and 45 deletions

View File

@ -81,6 +81,8 @@ struct _MetaWaylandSurface
MetaWindow *window;
MetaWaylandBuffer *buffer;
struct wl_listener buffer_destroy_listener;
cairo_region_t *input_region;
cairo_region_t *opaque_region;
int scale;
int32_t offset_x, offset_y;
GList *subsurfaces;