summaryrefslogtreecommitdiff
path: root/test/mime-unique-id.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2017-11-09 20:52:36 +1030
committerAdrian Johnson <ajohnson@redneon.com>2017-11-09 22:01:40 +1030
commitd5cb45013bf10d97657cea105683bf5ccb21c2d7 (patch)
tree2005ccbd286e6a9aa00115d54cc11b7fdd01846b /test/mime-unique-id.c
parentbff47b43c4b0501c0255e9ba191904bea13ddf5c (diff)
downloadcairo-d5cb45013bf10d97657cea105683bf5ccb21c2d7.tar.gz
pdf: fix mime-unique-id jpeg attached to recording test
- Restructure the emit_surface code so that mime types are checked first. - Add a test parameter to emit_surface to test if the surface will be emitted as an image or recording instead checking the surface type as the attached mime may override this. - Mark surface as not clear when mime is attached to avoid optimizing away "clear" surfaces that have mime attached. - Include entire surface in analysis if mime attached (also fixes bug with calculating the extents CONTENT_COLOR surfaces)
Diffstat (limited to 'test/mime-unique-id.c')
-rwxr-xr-xtest/mime-unique-id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mime-unique-id.c b/test/mime-unique-id.c
index 78957fc51..1d7babe09 100755
--- a/test/mime-unique-id.c
+++ b/test/mime-unique-id.c
@@ -72,7 +72,7 @@
* file size due to changes to the PS/PDF surfaces while being small
* enough to catch any attempt to embed the surface more than
* once. The compressed size of each surface embedded in PDF is:
- * - image: 111,952
+ * - image: 108,774
* - jpeg: 11,400
* - recording: 17,518
*
@@ -81,7 +81,7 @@
*/
#define PS2_EXPECTED_SIZE 315362
#define PS3_EXPECTED_SIZE 315362
-#define PDF_EXPECTED_SIZE 142968
+#define PDF_EXPECTED_SIZE 347182
#define SIZE_TOLERANCE 5000
static const char *png_filename = "romedalen.png";