Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 641923002: Change PDF scaling factor from double to float. (Closed)

Created:
6 years, 2 months ago by Peter Kasting
Modified:
6 years, 2 months ago
CC:
chromium-reviews, mkwst+moarreviews-ipc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Change PDF scaling factor from double to float. This ultimate consumers of this want a float anyway, so changing to be a float all the way through is less misleading. This also avoids some "value possibly truncated" warnings (currently disabled) on MSVC. This also removes a couple of scale-related functions in metafile_skia_wrapper.* that seem to be entirely unused. BUG=none TEST=none Committed: https://crrev.com/46a6291e7b4e7c7367daf4e5fb1a33537f776813 Cr-Commit-Position: refs/heads/master@{#298980}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Total comments: 6

Patch Set 3 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -65 lines) Patch
M chrome/browser/printing/pdf_to_emf_converter.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/printing/print_job.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_utility_printing_messages.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/cloud_print/print_system_win.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/service_utility_process_host.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/utility/printing_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/printing_handler.cc View 1 2 5 chunks +12 lines, -10 lines 0 comments Download
M printing/metafile_skia_wrapper.h View 1 chunk +0 lines, -4 lines 0 comments Download
M printing/metafile_skia_wrapper.cc View 2 chunks +0 lines, -20 lines 0 comments Download
M printing/printed_document.h View 1 chunk +1 line, -1 line 0 comments Download
M printing/printed_document.cc View 1 chunk +1 line, -1 line 0 comments Download
M printing/printed_document_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M printing/printed_page.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/gdi_util.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/gdi_util.cc View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Peter Kasting
sky: chrome/, ui/ OWNERS scottbyer: printing/ OWNERS
6 years, 2 months ago (2014-10-08 22:51:50 UTC) #2
Peter Kasting
I forgot, there is one unrelated set of changes included in printing_handler.cc while I was ...
6 years, 2 months ago (2014-10-08 22:57:07 UTC) #3
sky
LGTM modulo finding someone to verify new conditionals are right. https://codereview.chromium.org/641923002/diff/1/chrome/utility/printing_handler.cc File chrome/utility/printing_handler.cc (right): https://codereview.chromium.org/641923002/diff/1/chrome/utility/printing_handler.cc#newcode410 ...
6 years, 2 months ago (2014-10-08 23:41:37 UTC) #4
Peter Kasting
+jam as the PDF owner: John, could you comment on whether the added checks in ...
6 years, 2 months ago (2014-10-09 00:54:59 UTC) #6
Scott Byer
Over to +Vitaly who is more familiar with the code.
6 years, 2 months ago (2014-10-09 18:52:47 UTC) #8
Vitaly Buka (NO REVIEWS)
lgtm lgtm https://codereview.chromium.org/641923002/diff/20001/chrome/utility/printing_handler.cc File chrome/utility/printing_handler.cc (right): https://codereview.chromium.org/641923002/diff/20001/chrome/utility/printing_handler.cc#newcode335 chrome/utility/printing_handler.cc:335: if (length64 < 0 || length64 > ...
6 years, 2 months ago (2014-10-09 19:17:51 UTC) #9
Peter Kasting
I'm going to assume Vitaly's review of the printing_handler.cc changes is sufficient. Removing jam. Adding ...
6 years, 2 months ago (2014-10-09 19:49:35 UTC) #11
Tom Sepez
Rubberstamp LGTM on changing double to float.
6 years, 2 months ago (2014-10-09 19:50:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641923002/170001
6 years, 2 months ago (2014-10-09 19:53:03 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:170001)
6 years, 2 months ago (2014-10-09 21:30:07 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 21:30:46 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/46a6291e7b4e7c7367daf4e5fb1a33537f776813
Cr-Commit-Position: refs/heads/master@{#298980}

Powered by Google App Engine
This is Rietveld 408576698