summaryrefslogtreecommitdiff
path: root/test/buffer-diff.h
diff options
context:
space:
mode:
authorVladimir Vukicevic <vladimir@pobox.com>2006-02-15 13:46:52 -0800
committerCarl Worth <cworth@cworth.org>2006-05-03 23:42:45 -0700
commitb3e2252b94297b7fbdbd3a3776781ea6df7c8bc6 (patch)
treecda8fb5fdc5d631777e2ab145b8d416339cdbe50 /test/buffer-diff.h
parent7beb3e27a552c724bbdb147bc27b775af0d61063 (diff)
downloadcairo-b3e2252b94297b7fbdbd3a3776781ea6df7c8bc6.tar.gz
Augment test framework to test everything under device offsets as well.
[With this change, two tests with gradients exhibit subtle differences under device offsets. I don't think we actually care about them though. -cworth]
Diffstat (limited to 'test/buffer-diff.h')
-rw-r--r--test/buffer-diff.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/test/buffer-diff.h b/test/buffer-diff.h
index b9c48ed3b..fd9662eac 100644
--- a/test/buffer-diff.h
+++ b/test/buffer-diff.h
@@ -36,7 +36,9 @@ buffer_diff (unsigned char *buf_a,
unsigned char *buf_diff,
int width,
int height,
- int stride);
+ int stride_a,
+ int stride_b,
+ int stride_diff);
/* Returns number of pixels changed ignoring the alpha channel.
* Also fills in a "diff" buffer intended to visually show where the
@@ -48,7 +50,10 @@ buffer_diff_noalpha (unsigned char *buf_a,
unsigned char *buf_diff,
int width,
int height,
- int stride);
+ int stride_a,
+ int stride_b,
+ int stride_diff);
+
/* Returns number of pixels changed, (or -1 on error).
* Also saves a "diff" image intended to visually show where the
@@ -57,13 +62,21 @@ buffer_diff_noalpha (unsigned char *buf_a,
int
image_diff (const char *filename_a,
const char *filename_b,
- const char *filename_diff);
+ const char *filename_diff,
+ int ax,
+ int ay,
+ int bx,
+ int by);
/* Like image_diff, but blending the contents of b over white first. */
int
image_diff_flattened (const char *filename_a,
const char *filename_b,
- const char *filename_diff);
+ const char *filename_diff,
+ int ax,
+ int ay,
+ int bx,
+ int by);
#endif