mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-22 05:40:36 +01:00
quartz: Remove unused imageSurface field
imageSurface was used to store a reference to the fallback image generated by during fallbacks for gradients. The fallback code has been removed as it is not needed anymore, thus this field can be removed as well.
This commit is contained in:
parent
ce455994a3
commit
35b1688c92
1 changed files with 0 additions and 5 deletions
|
|
@ -1311,7 +1311,6 @@ typedef struct {
|
|||
|
||||
/* Used with DO_IMAGE and DO_TILED_IMAGE */
|
||||
CGImageRef image;
|
||||
cairo_surface_t *imageSurface;
|
||||
CGRect imageRect;
|
||||
|
||||
/* Used with DO_SHADING */
|
||||
|
|
@ -1438,7 +1437,6 @@ _cairo_quartz_setup_source (cairo_quartz_drawing_state_t *state,
|
|||
cairo_status_t status;
|
||||
|
||||
state->image = NULL;
|
||||
state->imageSurface = NULL;
|
||||
state->shading = NULL;
|
||||
|
||||
/* Save before we change the pattern, colorspace, etc. so that
|
||||
|
|
@ -1596,9 +1594,6 @@ _cairo_quartz_teardown_source (cairo_quartz_drawing_state_t *state,
|
|||
if (state->image)
|
||||
CGImageRelease (state->image);
|
||||
|
||||
if (state->imageSurface)
|
||||
cairo_surface_destroy (state->imageSurface);
|
||||
|
||||
if (state->shading)
|
||||
CGShadingRelease (state->shading);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue