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

Issue 694213002: Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. (Closed)

Created:
6 years, 1 month ago by hal.canary
Modified:
5 years, 11 months ago
CC:
chromium-reviews, djsollen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. In the PdfMetafileSkia class, Instead of storing a SkPDFDocument, store a vector of pages as SkPictures. This allows access to individual at any time. When FinishDocument() is called, use the SkDocument API to print all pages to PDF. BUG=278148 Committed: https://crrev.com/816b7105b078f7300f825cd81f379e312efdb821 Cr-Commit-Position: refs/heads/master@{#304379}

Patch Set 1 : . #

Total comments: 37

Patch Set 2 : code duplication #

Total comments: 6

Patch Set 3 : comments from Vitaly #

Total comments: 14

Patch Set 4 : rebase again, respond Vitaly, remove build/gyp changes, git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -85 lines) Patch
M printing/pdf_metafile_skia.cc View 1 2 3 7 chunks +150 lines, -85 lines 0 comments Download

Messages

Total messages: 47 (23 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694213002/20001
6 years, 1 month ago (2014-11-03 15:37:43 UTC) #3
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 1 month ago (2014-11-03 15:37:45 UTC) #5
hal.canary
please take a look.
6 years, 1 month ago (2014-11-03 15:43:33 UTC) #7
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/694213002/diff/100001/chrome/renderer/printing/print_web_view_helper_linux.cc File chrome/renderer/printing/print_web_view_helper_linux.cc (right): https://codereview.chromium.org/694213002/diff/100001/chrome/renderer/printing/print_web_view_helper_linux.cc#newcode159 chrome/renderer/printing/print_web_view_helper_linux.cc:159: GetPageSizeAndContentAreaFromPageLayout(page_layout_in_points, &page_size, Similar code in and _win.cc, _mac.mm and ...
6 years, 1 month ago (2014-11-03 17:57:25 UTC) #8
Vitaly Buka (NO REVIEWS)
Is any bug for this? https://codereview.chromium.org/694213002/diff/100001/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): https://codereview.chromium.org/694213002/diff/100001/printing/pdf_metafile_skia.cc#newcode100 printing/pdf_metafile_skia.cc:100: const float& scale_factor) { ...
6 years, 1 month ago (2014-11-03 19:57:02 UTC) #9
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/694213002/diff/120001/chrome/renderer/printing/print_web_view_helper_linux.cc File chrome/renderer/printing/print_web_view_helper_linux.cc (right): https://codereview.chromium.org/694213002/diff/120001/chrome/renderer/printing/print_web_view_helper_linux.cc#newcode185 chrome/renderer/printing/print_web_view_helper_linux.cc:185: canvas.clear(); can you make "clear" use consistent? also webview ...
6 years, 1 month ago (2014-11-03 20:03:29 UTC) #10
Vitaly Buka (NO REVIEWS)
BTW this patch created with @google.com account not chromium.org one.
6 years, 1 month ago (2014-11-03 20:06:11 UTC) #11
reed1
+1 for removing the extra (unneeded) class https://codereview.chromium.org/694213002/diff/120001/chrome/renderer/printing/print_web_view_helper_linux.cc File chrome/renderer/printing/print_web_view_helper_linux.cc (right): https://codereview.chromium.org/694213002/diff/120001/chrome/renderer/printing/print_web_view_helper_linux.cc#newcode185 chrome/renderer/printing/print_web_view_helper_linux.cc:185: canvas.clear(); On ...
6 years, 1 month ago (2014-11-03 20:29:33 UTC) #12
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/694213002/diff/120001/chrome/renderer/printing/print_web_view_helper_linux.cc File chrome/renderer/printing/print_web_view_helper_linux.cc (right): https://codereview.chromium.org/694213002/diff/120001/chrome/renderer/printing/print_web_view_helper_linux.cc#newcode185 chrome/renderer/printing/print_web_view_helper_linux.cc:185: canvas.clear(); On 2014/11/03 20:29:33, reed1 wrote: > On 2014/11/03 ...
6 years, 1 month ago (2014-11-03 20:50:11 UTC) #13
reed1
On 2014/11/03 20:50:11, Vitaly Buka wrote: > https://codereview.chromium.org/694213002/diff/120001/chrome/renderer/printing/print_web_view_helper_linux.cc > File chrome/renderer/printing/print_web_view_helper_linux.cc (right): > > https://codereview.chromium.org/694213002/diff/120001/chrome/renderer/printing/print_web_view_helper_linux.cc#newcode185 ...
6 years, 1 month ago (2014-11-03 20:56:48 UTC) #14
Vitaly Buka (NO REVIEWS)
On 2014/11/03 20:56:48, reed1 wrote: > On 2014/11/03 20:50:11, Vitaly Buka wrote: > > > ...
6 years, 1 month ago (2014-11-03 21:10:14 UTC) #15
hal.canary
https://codereview.chromium.org/694213002/diff/100001/chrome/renderer/printing/print_web_view_helper_linux.cc File chrome/renderer/printing/print_web_view_helper_linux.cc (right): https://codereview.chromium.org/694213002/diff/100001/chrome/renderer/printing/print_web_view_helper_linux.cc#newcode159 chrome/renderer/printing/print_web_view_helper_linux.cc:159: GetPageSizeAndContentAreaFromPageLayout(page_layout_in_points, &page_size, On 2014/11/03 17:57:24, Vitaly Buka wrote: > ...
6 years, 1 month ago (2014-11-04 15:30:35 UTC) #16
hal.canary
Vitaly, It sounds like you have no problem with the major changes of this CL. ...
6 years, 1 month ago (2014-11-04 15:33:49 UTC) #17
Vitaly Buka (NO REVIEWS)
On 2014/11/04 15:33:49, Hal Canary wrote: > Vitaly, > > It sounds like you have ...
6 years, 1 month ago (2014-11-04 18:14:34 UTC) #18
Vitaly Buka (NO REVIEWS)
please run "git cl format" and lgtm with few other comments https://codereview.chromium.org/694213002/diff/100001/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): ...
6 years, 1 month ago (2014-11-04 19:23:56 UTC) #19
hal.canary
https://codereview.chromium.org/694213002/diff/160001/printing/metafile.h File printing/metafile.h (right): https://codereview.chromium.org/694213002/diff/160001/printing/metafile.h#newcode118 printing/metafile.h:118: // StartPage or NULL on error. The default implementation ...
6 years, 1 month ago (2014-11-05 14:31:33 UTC) #20
Vitaly Buka (NO REVIEWS)
On 2014/11/05 14:31:33, Hal Canary wrote: > https://codereview.chromium.org/694213002/diff/160001/printing/metafile.h > File printing/metafile.h (right): > > https://codereview.chromium.org/694213002/diff/160001/printing/metafile.h#newcode118 ...
6 years, 1 month ago (2014-11-05 22:02:52 UTC) #21
hal.canary
https://codereview.chromium.org/694213002/diff/160001/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): https://codereview.chromium.org/694213002/diff/160001/printing/pdf_metafile_skia.cc#newcode88 printing/pdf_metafile_skia.cc:88: skia::RefPtr<SkStreamAsset> pdf_data_; On 2014/11/04 19:23:55, Vitaly Buka wrote: > ...
6 years, 1 month ago (2014-11-16 21:29:28 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694213002/350001
6 years, 1 month ago (2014-11-16 21:30:34 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/34644)
6 years, 1 month ago (2014-11-16 21:45:42 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694213002/370001
6 years, 1 month ago (2014-11-17 01:55:33 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:370001)
6 years, 1 month ago (2014-11-17 03:05:36 UTC) #44
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/816b7105b078f7300f825cd81f379e312efdb821 Cr-Commit-Position: refs/heads/master@{#304379}
6 years, 1 month ago (2014-11-17 03:06:14 UTC) #45
Vitaly Buka (NO REVIEWS)
6 years, 1 month ago (2014-11-17 23:41:33 UTC) #46
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:370001) has been created in
https://codereview.chromium.org/731143004/ by vitalybuka@chromium.org.

The reason for reverting is: Breaks printing.
BUG=434079.

Powered by Google App Engine
This is Rietveld 408576698