summaryrefslogtreecommitdiff
path: root/src/compositor.h
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2012-02-09 16:39:38 +0200
committerPekka Paalanen <ppaalanen@gmail.com>2012-02-10 15:47:56 +0200
commit730d87e6a6c70a6151cfe931e0db4334531a5bdb (patch)
treeecadb684163e073f706630321be082ac00d8ad82 /src/compositor.h
parentb45ac5eada9f311d1e31ff7337b3de091434e6a1 (diff)
compositor: move opaque tracking into transform
Move the surface opaque region setup from weston_surface_configure() to weston_surface_update_transform(), so we have less reason to call update_transform from configure. Opaque region depends on geometry, after all. Also move the opaque field from weston_surface to weston_surface::transform to make this obvious. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'src/compositor.h')
-rw-r--r--src/compositor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor.h b/src/compositor.h
index 80b848d..2cb3dba 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -243,7 +243,6 @@ struct weston_surface {
struct weston_compositor *compositor;
GLuint texture;
pixman_region32_t damage;
- pixman_region32_t opaque;
int32_t pitch;
struct wl_list link;
struct wl_list buffer_link;
@@ -272,6 +271,7 @@ struct weston_surface {
*/
struct {
pixman_region32_t boundingbox;
+ pixman_region32_t opaque;
/* matrix and inverse are used only if enabled = 1.
* If enabled = 0, use x, y, width, height directly.