From dc2bb9ad21a10550fb451d7c842c63cbce98045b Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Tue, 21 Aug 2018 19:50:17 +0000 Subject: Optimize rendering of two dimensional barcodes: defer upscale. Defer upscaling as late as possible so that intermediary data structures are smaller. Made a couple of changes along the way to preserve the barcode correctness and fix some padding issues. For my example, this is a ~21x improvement in rendering time, down from ~190ms per barcode to ~9ms. Bug: 872907, pdfium:1135 Change-Id: If532e0f168f02fea9c31d473f34c0009da4f4612 Reviewed-on: https://pdfium-review.googlesource.com/40010 Reviewed-by: Lei Zhang Commit-Queue: Henrique Nakashima --- .../xfa_specific/barcode_test_expected.pdf.0.png | Bin 10717 -> 10669 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'testing') diff --git a/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png b/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png index b56b826839..4138165e64 100644 Binary files a/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png and b/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png differ -- cgit v1.2.3