mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 07:18:04 +02:00
perf: Fold cairo-perf-timer.h into cairo-perf.h
This commit is contained in:
parent
499a3a7c47
commit
9f51fcc888
5 changed files with 19 additions and 54 deletions
|
|
@ -20,9 +20,9 @@ cairo_perf_SOURCES = \
|
|||
paint.c
|
||||
|
||||
if CAIRO_HAS_WIN32_SURFACE
|
||||
cairo_perf_SOURCES += cairo-perf-timer-win32.c
|
||||
cairo_perf_SOURCES += cairo-perf-win32.c
|
||||
else
|
||||
cairo_perf_SOURCES += cairo-perf-timer-posix.c
|
||||
cairo_perf_SOURCES += cairo-perf-posix.c
|
||||
endif
|
||||
|
||||
LDADD = $(top_builddir)/boilerplate/libcairoboilerplate.la \
|
||||
|
|
|
|||
|
|
@ -1,51 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2006 Mozilla Corporation
|
||||
* Copyright © 2006 Red Hat, Inc.
|
||||
*
|
||||
* 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 authors not be used in advertising or publicity pertaining to
|
||||
* distribution of the software without specific, written prior
|
||||
* permission. The authors make no representations about the
|
||||
* suitability of this software for any purpose. It is provided "as
|
||||
* is" without express or implied warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
|
||||
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS, IN NO EVENT SHALL THE AUTHORS 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: Vladimir Vukicevic <vladimir@pobox.com>
|
||||
* Carl Worth <cworth@cworth.org>
|
||||
*/
|
||||
|
||||
#ifndef _TIMER_ALARM_H_
|
||||
#define _TIMER_ALARM_H_
|
||||
|
||||
#include "cairo-perf.h"
|
||||
|
||||
typedef struct _cairo_perf_timer_t cairo_perf_timer_t;
|
||||
|
||||
/* timers */
|
||||
|
||||
void
|
||||
timer_start (void);
|
||||
|
||||
void
|
||||
timer_stop (void);
|
||||
|
||||
double
|
||||
timer_elapsed (void);
|
||||
|
||||
/* yield */
|
||||
|
||||
void
|
||||
yield (void);
|
||||
|
||||
#endif
|
||||
|
|
@ -30,7 +30,23 @@
|
|||
|
||||
#include "cairo-boilerplate.h"
|
||||
|
||||
#include "cairo-perf-timer.h"
|
||||
typedef struct _cairo_perf_timer_t cairo_perf_timer_t;
|
||||
|
||||
/* timers */
|
||||
|
||||
void
|
||||
timer_start (void);
|
||||
|
||||
void
|
||||
timer_stop (void);
|
||||
|
||||
double
|
||||
timer_elapsed (void);
|
||||
|
||||
/* yield */
|
||||
|
||||
void
|
||||
yield (void);
|
||||
|
||||
typedef double (*cairo_perf_func_t) (cairo_t *cr, int width, int height);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue