summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-10-27 17:31:38 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-10-27 17:31:48 +0000
commit978ba20ffd0d2b37bf02b9d86828fa701c0c02fa (patch)
tree8752f17f8e0f604b30c66695dbf12602301c60bf
parentd5ec7ab0cd0663184d6056bc6fc87c86ec345342 (diff)
downloadpdfium-978ba20ffd0d2b37bf02b9d86828fa701c0c02fa.tar.xz
Revert "Reland "Remove ContrastAdjust().""
This reverts commit d5ec7ab0cd0663184d6056bc6fc87c86ec345342. Reason for revert: Did not mean to reland, just create the reland CL. Original change's description: > Reland "Remove ContrastAdjust()." > > Original change's description: > > Revert "Remove ContrastAdjust()." > > > > This reverts commit 53d443f042b590ae2d920def16bc9daf66f8427d. > > > > Reason for revert: Breaks PDFToPWGRasterBrowserTest > > > > Original change's description: > > > Remove ContrastAdjust(). > > > > > > This post-processing increased the contrast of scaled-down features - > > > mainly lines and fonts, relative to the background. The effect does not > > > improved readability and in some cases makes the scaled-down version > > > look like a different document at a glance. Text that is normal > > > weight appears bold when scaled down in these cases. > > > > > > Change-Id: I2544d45e2bcec25d6742d2a60c1316d8df08cce1 > > > Reviewed-on: https://pdfium-review.googlesource.com/15471 > > > Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> > > > Reviewed-by: dsinclair <dsinclair@chromium.org> > > > > TBR=bungeman@chromium.org,dsinclair@chromium.org,hnakashima@chromium.org > > > > # Not skipping CQ checks because original CL landed > 1 day ago. > > > > Change-Id: I7f61650bc6d917b3c6640da60f3f740ef4498de0 > > Reviewed-on: https://pdfium-review.googlesource.com/16970 > > Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> > > Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> > > TBR=bungeman@chromium.org,dsinclair@chromium.org,hnakashima@chromium.org > > Change-Id: I77d4377d30908d1e2d4dc842300a761072a5fbd4 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://pdfium-review.googlesource.com/16990 > Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> > Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> TBR=bungeman@chromium.org,dsinclair@chromium.org,hnakashima@chromium.org Change-Id: Ie2e91662a1e82c0a793952aab47c2acbde1596d4 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://pdfium-review.googlesource.com/16991 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
-rw-r--r--DEPS2
-rw-r--r--core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp4
-rw-r--r--core/fpdfapi/parser/fpdf_parser_decode_embeddertest.cpp4
-rw-r--r--core/fxge/cfx_facecache.cpp55
-rw-r--r--fpdfsdk/fpdfannot_embeddertest.cpp58
-rw-r--r--fpdfsdk/fpdfedit_embeddertest.cpp18
-rw-r--r--fpdfsdk/fpdfformfill_embeddertest.cpp6
-rw-r--r--testing/SUPPRESSIONS8
-rw-r--r--testing/resources/pixel/bug_113910_expected.pdf.0.pngbin1609 -> 1608 bytes
-rw-r--r--testing/resources/pixel/bug_524043_1_expected.pdf.0.pngbin5315 -> 5372 bytes
-rw-r--r--testing/resources/pixel/bug_524043_2_expected.pdf.0.pngbin2174 -> 2198 bytes
-rw-r--r--testing/resources/pixel/bug_524043_3_expected.pdf.0.pngbin5315 -> 5372 bytes
-rw-r--r--testing/resources/pixel/bug_524043_4_expected.pdf.0.pngbin5315 -> 5372 bytes
-rw-r--r--testing/resources/pixel/bug_524043_5_expected.pdf.0.pngbin5315 -> 5372 bytes
-rw-r--r--testing/resources/pixel/bug_524043_7_expected.pdf.0.pngbin2174 -> 2198 bytes
-rw-r--r--testing/resources/pixel/bug_528103_expected.pdf.0.pngbin4191 -> 4203 bytes
-rw-r--r--testing/resources/pixel/bug_528103_expected_win.pdf.0.pngbin4193 -> 4199 bytes
-rw-r--r--testing/resources/pixel/bug_543018_1_expected.pdf.0.pngbin5315 -> 5372 bytes
-rw-r--r--testing/resources/pixel/bug_543018_2_expected.pdf.0.pngbin5315 -> 5372 bytes
-rw-r--r--testing/resources/pixel/bug_551258_1_expected.pdf.0.pngbin5315 -> 5372 bytes
-rw-r--r--testing/resources/pixel/bug_665467_expected.pdf.0.pngbin467 -> 467 bytes
-rw-r--r--testing/resources/pixel/bug_733528_expected.pdf.0.pngbin3465 -> 3469 bytes
-rw-r--r--testing/resources/pixel/bug_736695_2_expected.pdf.0.pngbin4404 -> 4399 bytes
-rw-r--r--testing/resources/pixel/bug_736695_3_expected.pdf.0.pngbin2860 -> 2868 bytes
-rw-r--r--testing/resources/pixel/font_size_expected.pdf.0.pngbin11961 -> 12035 bytes
25 files changed, 102 insertions, 53 deletions
diff --git a/DEPS b/DEPS
index 32e59c33a4..772af7ae90 100644
--- a/DEPS
+++ b/DEPS
@@ -18,7 +18,7 @@ vars = {
'jinja2_revision': 'd34383206fa42d52faa10bb9931d6d538f3a57e0',
'jpeg_turbo_revision': '7260e4d8b8e1e40b17f03fafdf1cd83296900f76',
'markupsafe_revision': '8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
- 'pdfium_tests_revision': '3fcb05df32dd74f46b1ce68c957c0452bce404c0',
+ 'pdfium_tests_revision': 'ae1650f5459d720c866a8a4b74f58529f3efc4f1',
'skia_revision': 'e0e20755f6c09b71038ced2bf4a00b4c4593f504',
'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d',
'trace_event_revision': '06294c8a4a6f744ef284cd63cfe54dbf61eea290',
diff --git a/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp b/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp
index 91e625ab26..3770e98d86 100644
--- a/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp
+++ b/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp
@@ -43,11 +43,11 @@ TEST_F(CPDFSecurityHandlerEmbeddertest, OwnerPassword) {
TEST_F(CPDFSecurityHandlerEmbeddertest, PasswordAfterGenerateSave) {
#if _FX_PLATFORM_ == _FX_PLATFORM_LINUX_
- const char md5[] = "7048dca58e2ed8f93339008b91e4eb4e";
+ const char md5[] = "e4a3701ca5b2a759e06455aa8d97d46e";
#elif _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char md5[] = "6951b6c9891dfe0332a5b1983e484400";
#else
- const char md5[] = "a5dde3c6c37b8716b9b369a03752a728";
+ const char md5[] = "50985f3440d3f66c3b599ab138214015";
#endif // _FX_PLATFORM_ == _FX_PLATFORM_LINUX_
{
ASSERT_TRUE(OpenDocument("encrypted.pdf", "5678", true));
diff --git a/core/fpdfapi/parser/fpdf_parser_decode_embeddertest.cpp b/core/fpdfapi/parser/fpdf_parser_decode_embeddertest.cpp
index bf2fd6d10f..bb186924b6 100644
--- a/core/fpdfapi/parser/fpdf_parser_decode_embeddertest.cpp
+++ b/core/fpdfapi/parser/fpdf_parser_decode_embeddertest.cpp
@@ -115,9 +115,9 @@ TEST_F(FPDFParserDecodeEmbeddertest, Bug_455199) {
#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char kExpectedMd5sum[] = "b90475ca64d1348c3bf5e2b77ad9187a";
#elif _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
- const char kExpectedMd5sum[] = "e5a6fa28298db07484cd922f3e210c88";
+ const char kExpectedMd5sum[] = "9a2637b73fd5265309bfddd9c69476cd";
#else
- const char kExpectedMd5sum[] = "2baa4c0e1758deba1b9c908e1fbd04ed";
+ const char kExpectedMd5sum[] = "f7e129d97c58e91adeace32a4327b925";
#endif
CompareBitmap(bitmap, 200, 200, kExpectedMd5sum);
FPDFBitmap_Destroy(bitmap);
diff --git a/core/fxge/cfx_facecache.cpp b/core/fxge/cfx_facecache.cpp
index 3f037ac65a..a3e58ff29c 100644
--- a/core/fxge/cfx_facecache.cpp
+++ b/core/fxge/cfx_facecache.cpp
@@ -35,8 +35,48 @@ namespace {
constexpr uint32_t kInvalidGlyphIndex = static_cast<uint32_t>(-1);
+constexpr int kMinPixel = 0;
+constexpr int kMaxPixel = 255;
+
constexpr int kMaxGlyphDimension = 2048;
+void ContrastAdjust(uint8_t* pDataIn,
+ uint8_t* pDataOut,
+ int nWidth,
+ int nHeight,
+ int nSrcRowBytes,
+ int nDstRowBytes) {
+ int max = kMinPixel;
+ int min = kMaxPixel;
+ for (int row = 0; row < nHeight; row++) {
+ uint8_t* pRow = pDataIn + row * nSrcRowBytes;
+ for (int col = 0; col < nWidth; col++) {
+ int val = pRow[col];
+ max = std::max(val, max);
+ min = std::min(val, min);
+ }
+ }
+ int diff = max - min;
+ if (diff == kMinPixel || diff == kMaxPixel) {
+ int rowbytes = std::min(abs(nSrcRowBytes), nDstRowBytes);
+ for (int row = 0; row < nHeight; row++) {
+ memcpy(pDataOut + row * nDstRowBytes, pDataIn + row * nSrcRowBytes,
+ rowbytes);
+ }
+ return;
+ }
+ float rate = 255.f / diff;
+ for (int row = 0; row < nHeight; row++) {
+ uint8_t* pSrcRow = pDataIn + row * nSrcRowBytes;
+ uint8_t* pDstRow = pDataOut + row * nDstRowBytes;
+ for (int col = 0; col < nWidth; col++) {
+ int val = static_cast<int>((pSrcRow[col] - min) * rate + 0.5);
+ pDstRow[col] =
+ static_cast<uint8_t>(pdfium::clamp(val, kMinPixel, kMaxPixel));
+ }
+ }
+}
+
struct UniqueKeyGen {
void Generate(int count, ...);
@@ -184,9 +224,18 @@ std::unique_ptr<CFX_GlyphBitmap> CFX_FaceCache::RenderGlyph(
}
} else {
memset(pDestBuf, 0, dest_pitch * bmheight);
- int rowbytes = std::min(abs(src_pitch), dest_pitch);
- for (int row = 0; row < bmheight; row++)
- memcpy(pDestBuf + row * dest_pitch, pSrcBuf + row * src_pitch, rowbytes);
+ if (anti_alias == FXFT_RENDER_MODE_MONO &&
+ FXFT_Get_Bitmap_PixelMode(FXFT_Get_Glyph_Bitmap(m_Face)) ==
+ FXFT_PIXEL_MODE_MONO) {
+ int rowbytes = abs(src_pitch) > dest_pitch ? dest_pitch : abs(src_pitch);
+ for (int row = 0; row < bmheight; row++) {
+ memcpy(pDestBuf + row * dest_pitch, pSrcBuf + row * src_pitch,
+ rowbytes);
+ }
+ } else {
+ ContrastAdjust(pSrcBuf, pDestBuf, bmwidth, bmheight, src_pitch,
+ dest_pitch);
+ }
}
return pGlyphBitmap;
}
diff --git a/fpdfsdk/fpdfannot_embeddertest.cpp b/fpdfsdk/fpdfannot_embeddertest.cpp
index a569c1037b..fbcd9f2972 100644
--- a/fpdfsdk/fpdfannot_embeddertest.cpp
+++ b/fpdfsdk/fpdfannot_embeddertest.cpp
@@ -283,7 +283,7 @@ TEST_F(FPDFAnnotEmbeddertest, AddAndSaveUnderlineAnnotation) {
FPDF_ClosePage(page);
// Open the saved document.
- const char md5[] = "dba153419f67b7c0c0e3d22d3e8910d5";
+ const char md5[] = "184b67b322edaee27994b3232544b8b3";
OpenSavedDocument();
LoadSavedPage();
@@ -316,13 +316,13 @@ TEST_F(FPDFAnnotEmbeddertest, ModifyRectQuadpointsWithAP) {
const char md5_modified_highlight[] = "aec26075011349dec9bace891856b5f2";
const char md5_modified_square[] = "057f57a32be95975775e5ec513fdcb56";
#elif _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
- const char md5_original[] = "0e27376094f11490f74c65f3dc3a42c5";
- const char md5_modified_highlight[] = "66f3caef3a7d488a4fa1ad37fc06310e";
- const char md5_modified_square[] = "a456dad0bc6801ee2d6408a4394af563";
+ const char md5_original[] = "ade6762a70e85605546ce067e7d2148f";
+ const char md5_modified_highlight[] = "fb8440ed1a070b53ed5598ce7451cfad";
+ const char md5_modified_square[] = "7925f6726b343393f258e8b4e93dd65d";
#else
- const char md5_original[] = "0e27376094f11490f74c65f3dc3a42c5";
- const char md5_modified_highlight[] = "66f3caef3a7d488a4fa1ad37fc06310e";
- const char md5_modified_square[] = "a456dad0bc6801ee2d6408a4394af563";
+ const char md5_original[] = "ade6762a70e85605546ce067e7d2148f";
+ const char md5_modified_highlight[] = "fb8440ed1a070b53ed5598ce7451cfad";
+ const char md5_modified_square[] = "7925f6726b343393f258e8b4e93dd65d";
#endif
// Open a file with four annotations and load its first page.
@@ -492,15 +492,15 @@ TEST_F(FPDFAnnotEmbeddertest, AddAndModifyPath) {
const char md5_two_paths[] = "e8994452fc4385337bae5522354e10ff";
const char md5_new_annot[] = "ee5372b31fede117fc83b9384598aa25";
#elif _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
- const char md5_original[] = "964f89bbe8911e540a465cf1a64b7f7e";
- const char md5_modified_path[] = "3f77b88ce6048e08e636c9a03921b2e5";
- const char md5_two_paths[] = "bffbf5ecd15862b9fe553c795400ff8e";
- const char md5_new_annot[] = "e020534c7eeea76be537c70d6e359a40";
+ const char md5_original[] = "4f64add0190ede63f7bb9eb1e2e83edb";
+ const char md5_modified_path[] = "681f0d0738dded0722e146f6c219bfac";
+ const char md5_two_paths[] = "67c7e90fc3b64e20f6b69a1744f7f4f0";
+ const char md5_new_annot[] = "262187984451bae2fe826067d68623ff";
#else
- const char md5_original[] = "964f89bbe8911e540a465cf1a64b7f7e";
- const char md5_modified_path[] = "3f77b88ce6048e08e636c9a03921b2e5";
- const char md5_two_paths[] = "bffbf5ecd15862b9fe553c795400ff8e";
- const char md5_new_annot[] = "e020534c7eeea76be537c70d6e359a40";
+ const char md5_original[] = "4f64add0190ede63f7bb9eb1e2e83edb";
+ const char md5_modified_path[] = "681f0d0738dded0722e146f6c219bfac";
+ const char md5_two_paths[] = "67c7e90fc3b64e20f6b69a1744f7f4f0";
+ const char md5_new_annot[] = "262187984451bae2fe826067d68623ff";
#endif
// Open a file with two annotations and load its first page.
@@ -673,13 +673,13 @@ TEST_F(FPDFAnnotEmbeddertest, AddAndModifyImage) {
const char md5_new_image[] = "ff012f5697436dfcaec25b32d1333596";
const char md5_modified_image[] = "86cf8cb2755a7a2046a543e66d9c1e61";
#elif _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
- const char md5_original[] = "964f89bbe8911e540a465cf1a64b7f7e";
- const char md5_new_image[] = "9ea8732dc9d579f68853f16892856208";
- const char md5_modified_image[] = "74239d2a8c55c9de1dbb9cd8781895aa";
+ const char md5_original[] = "4f64add0190ede63f7bb9eb1e2e83edb";
+ const char md5_new_image[] = "6fb176c20996cc554d0210d8c8b6138f";
+ const char md5_modified_image[] = "546959714dfb0dcd7e7b00259e8d178c";
#else
- const char md5_original[] = "964f89bbe8911e540a465cf1a64b7f7e";
- const char md5_new_image[] = "9ea8732dc9d579f68853f16892856208";
- const char md5_modified_image[] = "74239d2a8c55c9de1dbb9cd8781895aa";
+ const char md5_original[] = "4f64add0190ede63f7bb9eb1e2e83edb";
+ const char md5_new_image[] = "6fb176c20996cc554d0210d8c8b6138f";
+ const char md5_modified_image[] = "546959714dfb0dcd7e7b00259e8d178c";
#endif
// Open a file with two annotations and load its first page.
@@ -750,13 +750,13 @@ TEST_F(FPDFAnnotEmbeddertest, AddAndModifyText) {
const char md5_new_text[] = "e5680ed048c2cfd9a1d27212cdf41286";
const char md5_modified_text[] = "79f5cfb0b07caaf936f65f6a7a57ce77";
#elif _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
- const char md5_original[] = "964f89bbe8911e540a465cf1a64b7f7e";
- const char md5_new_text[] = "00b14fa2dc1c90d1b0d034e1608efef5";
- const char md5_modified_text[] = "076c8f24a09ddc0e49f7e758edead6f0";
+ const char md5_original[] = "4f64add0190ede63f7bb9eb1e2e83edb";
+ const char md5_new_text[] = "998abae4962f8f41e094e7612d8339fc";
+ const char md5_modified_text[] = "e89b82ca4589b8f0b45fff42ca3a96a4";
#else
- const char md5_original[] = "964f89bbe8911e540a465cf1a64b7f7e";
- const char md5_new_text[] = "00b14fa2dc1c90d1b0d034e1608efef5";
- const char md5_modified_text[] = "076c8f24a09ddc0e49f7e758edead6f0";
+ const char md5_original[] = "4f64add0190ede63f7bb9eb1e2e83edb";
+ const char md5_new_text[] = "998abae4962f8f41e094e7612d8339fc";
+ const char md5_modified_text[] = "e89b82ca4589b8f0b45fff42ca3a96a4";
#endif
// Open a file with two annotations and load its first page.
@@ -880,9 +880,9 @@ TEST_F(FPDFAnnotEmbeddertest, GetSetStringValue) {
#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char md5[] = "4d64e61c9c0f8c60ab3cc3234bb73b1c";
#elif _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
- const char md5[] = "c96ee1f316d7f5a1b154de9f9d467f01";
+ const char md5[] = "0e3710ea6476f5bcba2cd39eb42d54e2";
#else
- const char md5[] = "c96ee1f316d7f5a1b154de9f9d467f01";
+ const char md5[] = "0e3710ea6476f5bcba2cd39eb42d54e2";
#endif
OpenSavedDocument();
LoadSavedPage();
diff --git a/fpdfsdk/fpdfedit_embeddertest.cpp b/fpdfsdk/fpdfedit_embeddertest.cpp
index f1f02ffa6d..60db27ad0c 100644
--- a/fpdfsdk/fpdfedit_embeddertest.cpp
+++ b/fpdfsdk/fpdfedit_embeddertest.cpp
@@ -422,7 +422,7 @@ TEST_F(FPDFEditEmbeddertest, PathOnTopOfText) {
#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char md5[] = "f9e6fa74230f234286bfcada9f7606d8";
#else
- const char md5[] = "aa71b09b93b55f467f1290e5111babee";
+ const char md5[] = "bc6e6eb50dda4695ba0fb4d04ed82ada";
#endif
CompareBitmap(bitmap, 200, 200, md5);
FPDFBitmap_Destroy(bitmap);
@@ -551,7 +551,7 @@ TEST_F(FPDFEditEmbeddertest, AddStandardFontText) {
#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char md5[] = "a4dddc1a3930fa694bbff9789dab4161";
#else
- const char md5[] = "eacaa24573b8ce997b3882595f096f00";
+ const char md5[] = "7a35771853a1cbba38f6775807878625";
#endif
CompareBitmap(page_bitmap, 612, 792, md5);
FPDFBitmap_Destroy(page_bitmap);
@@ -569,9 +569,9 @@ TEST_F(FPDFEditEmbeddertest, AddStandardFontText) {
#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char md5_2[] = "a5c4ace4c6f27644094813fe1441a21c";
#elif _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
- const char md5_2[] = "2587eac9a787e97a37636d54d11bd28d";
+ const char md5_2[] = "b231b329a4b566fb9b42bfc15fe59bb7";
#else
- const char md5_2[] = "76fcc7d08aa15445efd2e2ceb7c6cc3b";
+ const char md5_2[] = "f85fae151851436072b7b3c6703e506a";
#endif
CompareBitmap(page_bitmap, 612, 792, md5_2);
FPDFBitmap_Destroy(page_bitmap);
@@ -589,9 +589,9 @@ TEST_F(FPDFEditEmbeddertest, AddStandardFontText) {
#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char md5_3[] = "40b3ef04f915ff4c4208948001763544";
#elif _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
- const char md5_3[] = "7cb61ec112cf400b489360d443ffc9d2";
+ const char md5_3[] = "ba874b3b137f984510c4e287ed4ba7ae";
#else
- const char md5_3[] = "b8a21668f1dab625af7c072e07fcefc4";
+ const char md5_3[] = "c5aed6a8ef05558c8c47d58c87cbcb46";
#endif
CompareBitmap(page_bitmap, 612, 792, md5_3);
FPDFBitmap_Destroy(page_bitmap);
@@ -892,7 +892,7 @@ TEST_F(FPDFEditEmbeddertest, AddTrueTypeFontText) {
#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char md5[] = "17d2b6cd574cf66170b09c8927529a94";
#else
- const char md5[] = "70592859010ffbf532a2237b8118bcc4";
+ const char md5[] = "1722c6a9deed953d730de9cd13dcbd55";
#endif // _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
CompareBitmap(page_bitmap, 612, 792, md5);
FPDFBitmap_Destroy(page_bitmap);
@@ -910,7 +910,7 @@ TEST_F(FPDFEditEmbeddertest, AddTrueTypeFontText) {
#if _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
const char md5_2[] = "8eded4193ff1f0f77b8b600a825e97ea";
#else
- const char md5_2[] = "c1d10cce1761c4a998a16b2562030568";
+ const char md5_2[] = "9d7885072058f6c3e68ecaf32e917f30";
#endif // _FX_PLATFORM_ == _FX_PLATFORM_APPLE_
CompareBitmap(page_bitmap2, 612, 792, md5_2);
FPDFBitmap_Destroy(page_bitmap2);
@@ -985,7 +985,7 @@ TEST_F(FPDFEditEmbeddertest, AddCIDFontText) {
// Check that the text renders properly.
FPDF_BITMAP page_bitmap = RenderPage(page);
- const char md5[] = "c68cd79aa72bf83a7b25271370d46b21";
+ const char md5[] = "2bc6c1aaa2252e73246a75775ccf38c2";
CompareBitmap(page_bitmap, 612, 792, md5);
FPDFBitmap_Destroy(page_bitmap);
diff --git a/fpdfsdk/fpdfformfill_embeddertest.cpp b/fpdfsdk/fpdfformfill_embeddertest.cpp
index ae1c02ede1..4a3fc03d24 100644
--- a/fpdfsdk/fpdfformfill_embeddertest.cpp
+++ b/fpdfsdk/fpdfformfill_embeddertest.cpp
@@ -524,9 +524,9 @@ TEST_F(FPDFFormFillEmbeddertest, FormText) {
const char md5_2[] = "35b1a4b679eafc749a0b6fda750c0e8d";
const char md5_3[] = "65c64a7c355388f719a752aa1e23f6fe";
#else
- const char md5_1[] = "b890950d4b9bc163b1a96797f3004b53";
- const char md5_2[] = "11487d5597599a26e8912b9c1d9422cb";
- const char md5_3[] = "bffe0ecea9a533f217047ee41d6be466";
+ const char md5_1[] = "a5e3ac74c2ee123ec6710e2f0ef8424a";
+ const char md5_2[] = "4526b09382e144d5506ad92149399de6";
+ const char md5_3[] = "80356067d860088864cf50ff85d8459e";
#endif
{
EXPECT_TRUE(OpenDocument("text_form.pdf"));
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS
index 1edc158161..feb862e3b1 100644
--- a/testing/SUPPRESSIONS
+++ b/testing/SUPPRESSIONS
@@ -132,12 +132,12 @@ example_006.pdf mac,win * *
example_007.pdf mac * *
example_008.pdf mac * *
example_009.pdf mac * *
-example_010.pdf mac * *
+example_010.pdf mac,win * *
example_011.pdf mac * *
example_012.pdf mac * *
example_013.pdf mac * *
example_014.pdf mac * *
-example_015.pdf mac * *
+example_015.pdf mac,win * *
example_016.pdf mac * *
example_017.pdf mac * *
example_018.pdf mac * *
@@ -145,7 +145,7 @@ example_019.pdf mac * *
example_020.pdf mac * *
example_021.pdf mac * *
example_022.pdf mac * *
-example_023.pdf mac * *
+example_023.pdf mac,win * *
example_024.pdf mac * *
example_025.pdf mac * *
example_026.pdf mac * *
@@ -175,7 +175,7 @@ example_049.pdf mac * *
example_050.pdf mac * *
example_051.pdf mac * *
example_052.pdf mac * *
-example_053.pdf mac * *
+example_053.pdf mac,win * *
example_054.pdf mac * *
example_055.pdf mac,win * *
example_056.pdf mac * *
diff --git a/testing/resources/pixel/bug_113910_expected.pdf.0.png b/testing/resources/pixel/bug_113910_expected.pdf.0.png
index 57c6f087f1..734647a021 100644
--- a/testing/resources/pixel/bug_113910_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_113910_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_524043_1_expected.pdf.0.png b/testing/resources/pixel/bug_524043_1_expected.pdf.0.png
index eabf957375..7d1b89aedb 100644
--- a/testing/resources/pixel/bug_524043_1_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_524043_1_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_524043_2_expected.pdf.0.png b/testing/resources/pixel/bug_524043_2_expected.pdf.0.png
index 04304fe59b..b366321f16 100644
--- a/testing/resources/pixel/bug_524043_2_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_524043_2_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_524043_3_expected.pdf.0.png b/testing/resources/pixel/bug_524043_3_expected.pdf.0.png
index eabf957375..7d1b89aedb 100644
--- a/testing/resources/pixel/bug_524043_3_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_524043_3_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_524043_4_expected.pdf.0.png b/testing/resources/pixel/bug_524043_4_expected.pdf.0.png
index eabf957375..7d1b89aedb 100644
--- a/testing/resources/pixel/bug_524043_4_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_524043_4_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_524043_5_expected.pdf.0.png b/testing/resources/pixel/bug_524043_5_expected.pdf.0.png
index eabf957375..7d1b89aedb 100644
--- a/testing/resources/pixel/bug_524043_5_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_524043_5_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_524043_7_expected.pdf.0.png b/testing/resources/pixel/bug_524043_7_expected.pdf.0.png
index 04304fe59b..b366321f16 100644
--- a/testing/resources/pixel/bug_524043_7_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_524043_7_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_528103_expected.pdf.0.png b/testing/resources/pixel/bug_528103_expected.pdf.0.png
index 5c0c25443b..504b5d33c2 100644
--- a/testing/resources/pixel/bug_528103_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_528103_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_528103_expected_win.pdf.0.png b/testing/resources/pixel/bug_528103_expected_win.pdf.0.png
index aca0606af6..4275f50a16 100644
--- a/testing/resources/pixel/bug_528103_expected_win.pdf.0.png
+++ b/testing/resources/pixel/bug_528103_expected_win.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_543018_1_expected.pdf.0.png b/testing/resources/pixel/bug_543018_1_expected.pdf.0.png
index eabf957375..7d1b89aedb 100644
--- a/testing/resources/pixel/bug_543018_1_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_543018_1_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_543018_2_expected.pdf.0.png b/testing/resources/pixel/bug_543018_2_expected.pdf.0.png
index eabf957375..7d1b89aedb 100644
--- a/testing/resources/pixel/bug_543018_2_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_543018_2_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_551258_1_expected.pdf.0.png b/testing/resources/pixel/bug_551258_1_expected.pdf.0.png
index eabf957375..7d1b89aedb 100644
--- a/testing/resources/pixel/bug_551258_1_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_551258_1_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_665467_expected.pdf.0.png b/testing/resources/pixel/bug_665467_expected.pdf.0.png
index e3b37b47d2..617cb0a916 100644
--- a/testing/resources/pixel/bug_665467_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_665467_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_733528_expected.pdf.0.png b/testing/resources/pixel/bug_733528_expected.pdf.0.png
index eaf48b5d5f..2825db0d70 100644
--- a/testing/resources/pixel/bug_733528_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_733528_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_736695_2_expected.pdf.0.png b/testing/resources/pixel/bug_736695_2_expected.pdf.0.png
index 33ea077362..7416cbaa23 100644
--- a/testing/resources/pixel/bug_736695_2_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_736695_2_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_736695_3_expected.pdf.0.png b/testing/resources/pixel/bug_736695_3_expected.pdf.0.png
index cbffe0a6f6..da7b571625 100644
--- a/testing/resources/pixel/bug_736695_3_expected.pdf.0.png
+++ b/testing/resources/pixel/bug_736695_3_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/font_size_expected.pdf.0.png b/testing/resources/pixel/font_size_expected.pdf.0.png
index b4506e0d2c..bcb30c4cb6 100644
--- a/testing/resources/pixel/font_size_expected.pdf.0.png
+++ b/testing/resources/pixel/font_size_expected.pdf.0.png
Binary files differ