From 9e8ae53154d680b1aabf39cddcb1fde0eb52752f Mon Sep 17 00:00:00 2001 From: "mh0310.choi" Date: Thu, 1 Sep 2016 11:09:28 +0900 Subject: Uploading Cairo version 1.14.2 Change-Id: I895b70fd7996b5c15f43480bdc449822636b2366 --- perf/cairo-perf-graph.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 perf/cairo-perf-graph.h (limited to 'perf/cairo-perf-graph.h') diff --git a/perf/cairo-perf-graph.h b/perf/cairo-perf-graph.h new file mode 100644 index 000000000..4cb62165f --- /dev/null +++ b/perf/cairo-perf-graph.h @@ -0,0 +1,63 @@ +/* + * Copyright © 2008 Chris Wilson + * + * Permission to use, copy, modify, distribute, and sell this software + * and its documentation for any purpose is hereby granted without + * fee, provided that the above copyright notice appear in all copies + * and that both that copyright notice and this permission notice + * appear in supporting documentation, and that the name of the + * copyright holders not be used in advertising or publicity + * pertaining to distribution of the software without specific, + * written prior permission. The copyright holders make no + * representations about the suitability of this software for any + * purpose. It is provided "as is" without express or implied + * warranty. + * + * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS + * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY + * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN + * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + * + * Authors: Chris Wilson + */ + +#ifndef CAIRO_PERF_GRAPH_H +#define CAIRO_PERF_GRAPH_H + +#include + +#include "cairo-perf.h" + +typedef struct _test_case { + const char *backend; + const char *content; + const char *name; + int size; + + test_report_t *min_test; + + cairo_bool_t shown; + double baseline; + double min, max; + GdkColor color; +} test_case_t; + +typedef struct _GraphView GraphView; + +GtkWidget * +graph_view_new (void); + +void +graph_view_set_reports (GraphView *gv, + test_case_t *tests, + cairo_perf_report_t *reports, + int num_reports); + +void +graph_view_update_visible (GraphView *gv); + +#endif -- cgit v1.2.3