diff options
author | Guillaume Ayoub <guillaume.ayoub@kozea.fr> | 2016-01-14 02:05:53 +0100 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2016-04-12 06:58:28 +0930 |
commit | d2f1ebf579ba12b816eec9317f98eb845fbfeb4f (patch) | |
tree | 08b98bf027f2b50ae0efcac96e452e3a7c488683 /src/cairo-recording-surface.c | |
parent | 747cab741cf63f30aa6bc2b787fc13e7e7a2b859 (diff) | |
download | cairo-d2f1ebf579ba12b816eec9317f98eb845fbfeb4f.tar.gz |
Use surface_transform in replay_and_create_regions
The surface_transform was already used surface_replay_with_clip, as the
matrix is obviously needed for the clip. But now, because of the
optimization done in commit 09b42c7, it's also needed by
replay_and_create_regions: get_target_extents clips the target surface
for performance issues, and therefore needs the surface_transform matrix
to get the right clipping surface.
Signed-off-by: Guillaume Ayoub <guillaume.ayoub@kozea.fr>
Diffstat (limited to 'src/cairo-recording-surface.c')
-rw-r--r-- | src/cairo-recording-surface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c index c7cd4a15e..94d7a5ab4 100644 --- a/src/cairo-recording-surface.c +++ b/src/cairo-recording-surface.c @@ -2026,9 +2026,10 @@ _cairo_recording_surface_replay_with_clip (cairo_surface_t *surface, */ cairo_status_t _cairo_recording_surface_replay_and_create_regions (cairo_surface_t *surface, + const cairo_matrix_t *surface_transform, cairo_surface_t *target) { - return _cairo_recording_surface_replay_internal ((cairo_recording_surface_t *) surface, NULL, NULL, + return _cairo_recording_surface_replay_internal ((cairo_recording_surface_t *) surface, NULL, surface_transform, target, NULL, CAIRO_RECORDING_CREATE_REGIONS, CAIRO_RECORDING_REGION_ALL); |