mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 15:20:28 +01:00
[perf] Exclude similar testing by default
There are synchronisation issues with similar surfaces (as only the original target surface is synced) which interferes with making performance comparisons. (There still maybe some value should you be aware of the limitations...)
This commit is contained in:
parent
bc49cb377c
commit
70fd2bbce3
1 changed files with 3 additions and 2 deletions
|
|
@ -128,12 +128,13 @@ _content_to_string (cairo_content_t content, cairo_bool_t similar)
|
|||
static cairo_bool_t
|
||||
cairo_perf_has_similar (cairo_perf_t *perf)
|
||||
{
|
||||
cairo_surface_t *target = cairo_get_target (perf->cr);
|
||||
cairo_surface_t *target;
|
||||
|
||||
if (getenv ("CAIRO_TEST_IGNORE_SIMILAR"))
|
||||
if (getenv ("CAIRO_TEST_SIMILAR") == NULL)
|
||||
return FALSE;
|
||||
|
||||
/* exclude the image backend */
|
||||
target = cairo_get_target (perf->cr);
|
||||
if (cairo_surface_get_type (target) == CAIRO_SURFACE_TYPE_IMAGE)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue