summaryrefslogtreecommitdiff
path: root/src/cairo-sdl-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-sdl-surface.c')
-rw-r--r--src/cairo-sdl-surface.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cairo-sdl-surface.c b/src/cairo-sdl-surface.c
index 18f13eaf..1f97fb47 100644
--- a/src/cairo-sdl-surface.c
+++ b/src/cairo-sdl-surface.c
@@ -52,7 +52,7 @@ _cairo_sdl_surface_create_internal (SDL_Surface *sdl,
cairo_sdl_surface_t *surface;
surface = malloc (sizeof (cairo_sdl_surface_t));
- if (surface == NULL)
+ if (unlikely (surface == NULL))
return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY));
_cairo_surface_init (&surface->base,
@@ -240,7 +240,7 @@ _cairo_sdl_surface_composite (cairo_operator_t op,
src_x, src_y, width, height,
(cairo_surface_t **) &src,
&src_attr);
- if (status)
+ if (unlikely (status))
return status;
is_integer_translation =
@@ -324,7 +324,7 @@ _cairo_sdl_surface_flush (void *abstract_surface)
n_boxes = 0;
status = _cairo_region_get_boxes (&surface->update, &n_boxes, &boxes);
- if (status)
+ if (unlikely (status))
return status;
if (n_boxes == 0)
return CAIRO_STATUS_SUCCESS;
@@ -357,6 +357,8 @@ static const cairo_surface_backend_t _cairo_sdl_surface_backend = {
_cairo_sdl_surface_composite,
NULL, /* fill rectangles */
NULL, /* composite traps */
+ NULL, /* create_span_renderer */
+ NULL, /* check_span_renderer */
NULL, /* copy_page */
NULL, /* show_page */
_cairo_sdl_surface_set_clip_region,