summaryrefslogtreecommitdiff
path: root/src/cairo-image-source.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-02-22 19:54:12 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-02-22 19:54:43 +0000
commitd6908135f4fc98496bc1e9a1d48a3ae95cc30594 (patch)
tree44207e7282342c2cf5f3b8c81e97562077242532 /src/cairo-image-source.c
parent58639857f9fbe99f4fca6ab2b1d13306ffbfe8d8 (diff)
downloadcairo-d6908135f4fc98496bc1e9a1d48a3ae95cc30594.tar.gz
image: Tidy reduction to EXTEND_NONE for replay surfaces
As _cairo_surface_get_source() returns the limits of the source, a chunk of code to query the source extents became redundant. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-image-source.c')
-rw-r--r--src/cairo-image-source.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/cairo-image-source.c b/src/cairo-image-source.c
index 58a18e349..3fa75e56d 100644
--- a/src/cairo-image-source.c
+++ b/src/cairo-image-source.c
@@ -631,19 +631,8 @@ _pixman_image_for_recording (cairo_image_surface_t *dst,
ty = limit.y;
extend = pattern->base.extend;
- if (_cairo_surface_get_extents (source, &limit)) {
- if (_cairo_rectangle_contains_rectangle (&limit, sample))
- {
- extend = CAIRO_EXTEND_NONE;
- }
- else if (extend == CAIRO_EXTEND_NONE &&
- ! _cairo_rectangle_intersects (&limit, sample))
- {
- return _pixman_transparent_image ();
- }
- } else
+ if (_cairo_rectangle_contains_rectangle (&limit, sample))
extend = CAIRO_EXTEND_NONE;
-
if (extend == CAIRO_EXTEND_NONE) {
if (! _cairo_rectangle_intersect (&limit, sample))
return _pixman_transparent_image ();