0

[Printing] Change non-square DPI to non-square pixels

It is not the DPI that is non-square. It is the pixels that are
non-square. Change all references to non-square DPI to non-square
pixels.

Change-Id: I6898de9ded7a21bce5835834f5f8ba5bc6093716
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4616147
Reviewed-by: Alan Screen <awscreen@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Nigi <nigi@chromium.org>
Commit-Queue: Andy Phan <andyphan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1157892}
This commit is contained in:
Andy Phan
2023-06-14 23:46:04 +00:00
committed by Chromium LUCI CQ
parent a86a92fb30
commit e53c80bc68
5 changed files with 10 additions and 10 deletions

@ -379,8 +379,8 @@ ScopedFPDFDocument PDFiumPrint::CreateSinglePageRasterPdf(
float source_page_width = FPDF_GetPageWidthF(page_to_print);
float source_page_height = FPDF_GetPageHeightF(page_to_print);
// For computing size in pixels, use a square dpi since the source PDF page
// has square DPI.
// For computing size in pixels, use square pixels since the source PDF page
// has square pixels.
int width_in_pixels = ConvertUnit(source_page_width, kPointsPerInch, dpi);
int height_in_pixels = ConvertUnit(source_page_height, kPointsPerInch, dpi);