summaryrefslogtreecommitdiff
path: root/test/buffer-diff.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-12-12 02:17:19 -0800
committerCarl Worth <cworth@cworth.org>2006-12-12 02:17:19 -0800
commitb50b8db6d7d3d0a887ee18ad5e8e0455ed794429 (patch)
tree60fc98806a496e585b5b11579c08a197e266e401 /test/buffer-diff.h
parent1781e6018c17909311295a9cc74b70500c6b4d0a (diff)
downloadcairo-b50b8db6d7d3d0a887ee18ad5e8e0455ed794429.tar.gz
test: Simplify buffer_diff by handling device offset in advance
In a manner similar to flattening in advance, we now extract the sub- surface of interest (when testing with device offsets) before calling into the buffer_diff functions. This allows these functions to accept a single stride value once again instead of one for each of the three images.
Diffstat (limited to 'test/buffer-diff.h')
-rw-r--r--test/buffer-diff.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/buffer-diff.h b/test/buffer-diff.h
index bef42cffe..d95c213b6 100644
--- a/test/buffer-diff.h
+++ b/test/buffer-diff.h
@@ -50,9 +50,7 @@ buffer_diff (unsigned char *buf_a,
unsigned char *buf_diff,
int width,
int height,
- int stride_a,
- int stride_b,
- int stride_diff,
+ int stride,
buffer_diff_result_t *result);
/* Compares two image buffers ignoring the alpha channel.
@@ -69,9 +67,7 @@ buffer_diff_noalpha (unsigned char *buf_a,
unsigned char *buf_diff,
int width,
int height,
- int stride_a,
- int stride_b,
- int stride_diff,
+ int stride,
buffer_diff_result_t *result);
/* Compares two image buffers ignoring the alpha channel. A return