From 9b9028c160a404771fe0caeecda8f4248997a808 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 18 Apr 2021 00:02:45 +0100 Subject: Drop cairo-vg surface OpenVG is a failed experiment from 10 years ago, and nobody has been using the cairo-vg surface in pretty much the same amount of time. --- util/cairo-trace/trace.c | 79 ------------------------------------------------ 1 file changed, 79 deletions(-) (limited to 'util') diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index bb79c85b9..5fe4935ee 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -5320,85 +5320,6 @@ cairo_recording_surface_create (cairo_content_t content, return ret; } -#if CAIRO_HAS_VG_SURFACE -#include -cairo_surface_t * -cairo_vg_surface_create (cairo_vg_context_t *context, - cairo_content_t content, - int width, int height) -{ - cairo_surface_t *ret; - - _enter_trace (); - - ret = DLCALL (cairo_vg_surface_create, context, content, width, height); - - _emit_line_info (); - if (_write_lock ()) { - Object *obj = _create_surface (ret); - - _trace_printf ("dict\n" - " /type /vg set\n" - " /content //%s set\n" - " /width %d set\n" - " /height %d set\n" - " surface dup /s%ld exch def\n", - _content_to_string (content), - width, height, - obj->token); - obj->width = width; - obj->height = height; - obj->defined = TRUE; - _push_object (obj); - dump_stack(__func__); - _write_unlock (); - } - - _exit_trace (); - return ret; -} - -cairo_surface_t * -cairo_vg_surface_create_for_image (cairo_vg_context_t *context, - VGImage image, - VGImageFormat format, - int width, int height) -{ - cairo_surface_t *ret; - - _enter_trace (); - - ret = DLCALL (cairo_vg_surface_create_for_image, - context, image, format, width, height); - - _emit_line_info (); - if (_write_lock ()) { - Object *obj = _create_surface (ret); - cairo_content_t content; - - content = DLCALL (cairo_surface_get_content, ret); - _trace_printf ("dict\n" - " /type /vg set\n" - " /content //%s set\n" - " /width %d set\n" - " /height %d set\n" - " surface dup /s%ld exch def\n", - _content_to_string (content), - width, height, - obj->token); - obj->width = width; - obj->height = height; - obj->defined = TRUE; - _push_object (obj); - dump_stack(__func__); - _write_unlock (); - } - - _exit_trace (); - return ret; -} -#endif - #if CAIRO_HAS_GL_SURFACE || CAIRO_HAS_GLESV2_SURFACE #include cairo_surface_t * -- cgit v1.2.1