diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-29 20:44:27 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-29 20:44:27 +0000 |
commit | 69066ab61e2f07c33b3de37720ef22d64f8e3771 (patch) | |
tree | d4986eeb798bd8c2f6dceb695fc27576b82248f0 | |
parent | ea08d171755bd4088d01261c55d1bfe0ff0f9f39 (diff) | |
download | pdfium-chromium/3596.tar.xz |
Do bilinear interpolation for "huge" images.chromium/3596
Simply downsampling produces really poor renderings. Use bilinear
interpolation to make the rendering look better at the cost of being a
bit slower.
Roll DEPS for testing/corpus/ to 5a68e878 to pick up the updated test
expectations from this CL.
BUG=chromium:898443
Change-Id: Ifc5fa358a15e4674f431afcbe26e7ab70da58849
Reviewed-on: https://pdfium-review.googlesource.com/c/44651
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
-rw-r--r-- | DEPS | 2 | ||||
-rw-r--r-- | core/fpdfapi/render/cpdf_imagerenderer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ vars = { 'jinja2_revision': '45571de473282bd1d8b63a8dfcb1fd268d0635d2', 'jpeg_turbo_revision': '61a2bbaa9aec89cb2c882d87ace6aba9aee49bb9', 'markupsafe_revision': '8f45f5cfa0009d2a70589bcda0349b8cb2b72783', - 'pdfium_tests_revision': '56802dad1a70683606dc80e3fe1d7a68cfa40869', + 'pdfium_tests_revision': '5a68e87859476eb75d3e068bd406c4921a6be8e2', 'skia_revision': '588f879677d4f36e16a42dd96876534f104c2e2f', 'tools_memory_revision': 'f7b00daf4df7f6c469f5fbc68d7f40f6bd15d6e6', 'trace_event_revision': '211b3ed9d0481b4caddbee1322321b86a483ca1f', diff --git a/core/fpdfapi/render/cpdf_imagerenderer.cpp b/core/fpdfapi/render/cpdf_imagerenderer.cpp index 4ab3e25a3e..ceca944a7e 100644 --- a/core/fpdfapi/render/cpdf_imagerenderer.cpp +++ b/core/fpdfapi/render/cpdf_imagerenderer.cpp @@ -374,7 +374,7 @@ bool CPDF_ImageRenderer::StartDIBBase() { if (image_size.ValueOrDie() > FPDF_HUGE_IMAGE_SIZE && !m_ResampleOptions.bHalftone) { - m_ResampleOptions.bInterpolateDownsample = true; + m_ResampleOptions.bInterpolateBilinear = true; } } #ifdef _SKIA_SUPPORT_ |