Lines Matching refs:surface
34 helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface, in helper_cairo_surface_write_to_ansi_stream() argument
38 unsigned int width = cairo_image_surface_get_width (surface); in helper_cairo_surface_write_to_ansi_stream()
39 unsigned int height = cairo_image_surface_get_height (surface); in helper_cairo_surface_write_to_ansi_stream()
40 if (cairo_image_surface_get_format (surface) != CAIRO_FORMAT_RGB24) { in helper_cairo_surface_write_to_ansi_stream()
43 if (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8) { in helper_cairo_surface_write_to_ansi_stream()
47 cairo_mask_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream()
51 cairo_set_source_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream()
55 surface = new_surface; in helper_cairo_surface_write_to_ansi_stream()
57 cairo_surface_reference (surface); in helper_cairo_surface_write_to_ansi_stream()
59 unsigned int stride = cairo_image_surface_get_stride (surface); in helper_cairo_surface_write_to_ansi_stream()
60 const uint32_t *data = (uint32_t *) (void *) cairo_image_surface_get_data (surface); in helper_cairo_surface_write_to_ansi_stream()
100 cairo_surface_destroy (surface); in helper_cairo_surface_write_to_ansi_stream()