mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-15 17:50:23 +01:00
subsurface: And remove the dead code for releasing complex source
Following the previous commit, we only allocate a simple image when acquiring the source so we only need to unreference it upon release. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
1fe16f75b1
commit
44a868b552
1 changed files with 0 additions and 14 deletions
|
|
@ -284,11 +284,6 @@ _cairo_surface_subsurface_get_font_options (void *abstract_surface,
|
|||
surface->target->backend->get_font_options (surface->target, options);
|
||||
}
|
||||
|
||||
struct extra {
|
||||
cairo_image_surface_t *image;
|
||||
void *image_extra;
|
||||
};
|
||||
|
||||
static cairo_status_t
|
||||
_cairo_surface_subsurface_acquire_source_image (void *abstract_surface,
|
||||
cairo_image_surface_t **image_out,
|
||||
|
|
@ -329,15 +324,6 @@ _cairo_surface_subsurface_release_source_image (void *abstract
|
|||
cairo_image_surface_t *image,
|
||||
void *abstract_extra)
|
||||
{
|
||||
cairo_surface_subsurface_t *surface = abstract_surface;
|
||||
|
||||
if (abstract_extra != NULL) {
|
||||
struct extra *extra = abstract_extra;
|
||||
|
||||
_cairo_surface_release_source_image (surface->target, extra->image, extra->image_extra);
|
||||
free (extra);
|
||||
}
|
||||
|
||||
cairo_surface_destroy (&image->base);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue