diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-11 16:04:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-11 16:08:17 +0100 |
commit | 1a544361e845e4881990624a597f9dc2b82d1c73 (patch) | |
tree | 0add36d21a7510644333dfb2bda441d34d324464 /src/cairo-surface-private.h | |
parent | f74b11415a1f7682dd50c222baa8815ef93681dc (diff) | |
download | cairo-1a544361e845e4881990624a597f9dc2b82d1c73.tar.gz |
gstate: Update cached matrix state after device transform changes on the target
Commit 8d67186cb291cb877e52b987e2ac18c2a1175a57 caches whether the device
transform is identity on context creation. However, the api is quite lax
and allows the user to modify the device transform *after* he has
started to use the surface in a context, as apparently WebKit does.
Since this is not the only instance where we may need to invalidate
caches if the user modifies state, introduce a simple mechanism for
hooking into notifications of property changes.
Fixes test/clip-device-offset.
Diffstat (limited to 'src/cairo-surface-private.h')
-rw-r--r-- | src/cairo-surface-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-surface-private.h b/src/cairo-surface-private.h index 19a93c272..31ddb8c7b 100644 --- a/src/cairo-surface-private.h +++ b/src/cairo-surface-private.h @@ -72,6 +72,7 @@ struct _cairo_surface { cairo_matrix_t device_transform; cairo_matrix_t device_transform_inverse; + cairo_list_t device_transform_observers; /* The actual resolution of the device, in dots per inch. */ double x_resolution; |