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

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

Created:
6 years ago by hal.canary
Modified:
5 years, 11 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. This relands http://crrev.com/694213002 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. In PrintWebViewHelper::RenderPageContent, skip clipping content to content area, since Windows printing prints content just outside of the content area, as noted in http://crbug.com/434079 . BUG=278148 Committed: https://crrev.com/18387e7ebb0eae6e4944e841d63ea058adab6e11 Cr-Commit-Position: refs/heads/master@{#310032} Committed: https://crrev.com/ff21476a27b22e7819fc9874456e31aa516a9c1c Cr-Commit-Position: refs/heads/master@{#312672}

Patch Set 1 #

Total comments: 8

Patch Set 2 : comments from reed@ #

Total comments: 2

Patch Set 3 : comments from danakj #

Total comments: 1

Patch Set 4 : rebase #

Patch Set 5 : braces #

Total comments: 6

Patch Set 6 : comment style #

Patch Set 7 : Fix issue 446729. #

Patch Set 8 : update for new skstream semantics #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -98 lines) Patch
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 1 chunk +2 lines, -13 lines 0 comments Download
M printing/pdf_metafile_skia.cc View 1 2 3 4 5 6 7 7 chunks +127 lines, -85 lines 0 comments Download
M ui/gfx/skia_util.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ui/gfx/skia_util.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (19 generated)
hal.canary
please take a look. I have tested this on Windows.
6 years ago (2014-12-22 20:12:08 UTC) #2
reed1
https://codereview.chromium.org/821703005/diff/1/chrome/renderer/printing/print_web_view_helper.cc File chrome/renderer/printing/print_web_view_helper.cc (right): https://codereview.chromium.org/821703005/diff/1/chrome/renderer/printing/print_web_view_helper.cc#newcode536 chrome/renderer/printing/print_web_view_helper.cc:536: if (content_area.origin() != canvas_area.origin()) { If you like, you ...
6 years ago (2014-12-22 20:41:25 UTC) #3
hal.canary
https://codereview.chromium.org/821703005/diff/1/chrome/renderer/printing/print_web_view_helper.cc File chrome/renderer/printing/print_web_view_helper.cc (right): https://codereview.chromium.org/821703005/diff/1/chrome/renderer/printing/print_web_view_helper.cc#newcode536 chrome/renderer/printing/print_web_view_helper.cc:536: if (content_area.origin() != canvas_area.origin()) { On 2014/12/22 20:41:24, reed1 ...
6 years ago (2014-12-23 15:19:14 UTC) #4
hal.canary
adding danakj@ to take a look at changes to ui/gfx/skia_util
6 years ago (2014-12-23 15:20:40 UTC) #6
danakj
https://codereview.chromium.org/821703005/diff/20001/ui/gfx/skia_util.h File ui/gfx/skia_util.h (right): https://codereview.chromium.org/821703005/diff/20001/ui/gfx/skia_util.h#newcode36 ui/gfx/skia_util.h:36: GFX_EXPORT Size SkSizeToSize(const SkSize& size); This should be SkSizeToSizeF. ...
6 years ago (2014-12-23 15:57:18 UTC) #7
hal.canary
https://codereview.chromium.org/821703005/diff/20001/ui/gfx/skia_util.h File ui/gfx/skia_util.h (right): https://codereview.chromium.org/821703005/diff/20001/ui/gfx/skia_util.h#newcode36 ui/gfx/skia_util.h:36: GFX_EXPORT Size SkSizeToSize(const SkSize& size); On 2014/12/23 15:57:18, danakj ...
6 years ago (2014-12-23 16:14:41 UTC) #8
danakj
ui/gfx LGTM https://codereview.chromium.org/821703005/diff/40001/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): https://codereview.chromium.org/821703005/diff/40001/printing/pdf_metafile_skia.cc#newcode165 printing/pdf_metafile_skia.cc:165: if (page_number < data_->pages_.size()) {}
6 years ago (2014-12-23 16:17:21 UTC) #9
hal.canary
Ping (Vitaly)
5 years, 11 months ago (2015-01-05 20:26:54 UTC) #12
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/821703005/diff/120001/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): https://codereview.chromium.org/821703005/diff/120001/printing/pdf_metafile_skia.cc#newcode54 printing/pdf_metafile_skia.cc:54: // keeps original asset state unchanged. put comment ...
5 years, 11 months ago (2015-01-05 21:38:58 UTC) #13
hal.canary
https://codereview.chromium.org/821703005/diff/120001/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): https://codereview.chromium.org/821703005/diff/120001/printing/pdf_metafile_skia.cc#newcode54 printing/pdf_metafile_skia.cc:54: // keeps original asset state unchanged. On 2015/01/05 21:38:57, ...
5 years, 11 months ago (2015-01-05 21:44:52 UTC) #16
hal.canary
5 years, 11 months ago (2015-01-05 21:44:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821703005/140001
5 years, 11 months ago (2015-01-05 21:46:58 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/42041)
5 years, 11 months ago (2015-01-05 23:54:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821703005/140001
5 years, 11 months ago (2015-01-06 00:46:06 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 11 months ago (2015-01-06 01:42:22 UTC) #24
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/18387e7ebb0eae6e4944e841d63ea058adab6e11 Cr-Commit-Position: refs/heads/master@{#310032}
5 years, 11 months ago (2015-01-06 01:43:01 UTC) #25
hal.canary
A revert of this CL (patchset #6 id:140001) has been created in https://codereview.chromium.org/788053006/ by halcanary@google.com. ...
5 years, 11 months ago (2015-01-08 16:51:40 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821703005/180001
5 years, 11 months ago (2015-01-20 21:04:34 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/112540) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/96505) Try ...
5 years, 11 months ago (2015-01-20 23:04:09 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821703005/180001
5 years, 11 months ago (2015-01-22 14:07:21 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/112540) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/96505)
5 years, 11 months ago (2015-01-22 14:07:46 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821703005/200001
5 years, 11 months ago (2015-01-22 16:08:50 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/113601) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/97465) Try ...
5 years, 11 months ago (2015-01-22 18:40:39 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821703005/200001
5 years, 11 months ago (2015-01-22 18:42:09 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/113601) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/97465)
5 years, 11 months ago (2015-01-22 18:43:26 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821703005/200001
5 years, 11 months ago (2015-01-22 20:33:36 UTC) #45
commit-bot: I haz the power
Committed patchset #8 (id:200001)
5 years, 11 months ago (2015-01-22 20:35:04 UTC) #46
commit-bot: I haz the power
5 years, 11 months ago (2015-01-22 20:36:00 UTC) #47
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ff21476a27b22e7819fc9874456e31aa516a9c1c
Cr-Commit-Position: refs/heads/master@{#312672}

Powered by Google App Engine
This is Rietveld 408576698