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

Issue 704813002: PdfMetafileSkia gives out a SkCanvas, not a SkBaseDevice. (Closed)

Created:
6 years, 1 month ago by hal.canary
Modified:
6 years, 1 month ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PdfMetafileSkia gives out a SkCanvas, not a SkBaseDevice. Motivation: hide SkPDFDevice and SkPDFDocument behind PdfMetafileSkia class. pdf_metafile_skia.cc: Implement GetVectorCanvasForNewPage. Remove StartPageForVectorCanvas. Own the SkCanvas pointer (current_page_canvas_). Replace page_outstanding_ field with a method that checks to see if current_page_canvas_ is NULL. Implement SaveTo. skia::VectorPlatformDeviceSkia remove class print_web_view_helper.cc Remove calls to canvas->getTopDevice()->setDrawingArea(...); (SkDFDevice) This API is no longer effective. print_web_view_helper_linux.cc, print_web_view_helper_mac.mm, print_web_view_helper_pdf_win.cc: call GetVectorCanvasForNewPage rather than StartPageForVectorCanvas BUG=278148 Committed: https://crrev.com/5be808e0b7478b27304f5a29b47ba1af1de627d2 Cr-Commit-Position: refs/heads/master@{#303522}

Patch Set 1 : comples #

Total comments: 16

Patch Set 2 : comments from Vitaly #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -275 lines) Patch
M android_webview/renderer/print_web_view_helper.cc View 3 chunks +0 lines, -7 lines 0 comments Download
M android_webview/renderer/print_web_view_helper_linux.cc View 1 1 chunk +8 lines, -14 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper.cc View 1 2 3 chunks +0 lines, -7 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper_linux.cc View 1 2 2 chunks +8 lines, -16 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper_mac.mm View 1 1 chunk +6 lines, -12 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper_pdf_win.cc View 1 1 chunk +10 lines, -22 lines 0 comments Download
M printing/pdf_metafile_skia.h View 1 3 chunks +12 lines, -8 lines 0 comments Download
M printing/pdf_metafile_skia.cc View 1 8 chunks +36 lines, -26 lines 0 comments Download
M skia/BUILD.gn View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
D skia/ext/vector_platform_device_skia.h View 1 chunk +0 lines, -59 lines 0 comments Download
D skia/ext/vector_platform_device_skia.cc View 1 chunk +0 lines, -88 lines 0 comments Download
M skia/skia_chrome.gypi View 1 2 2 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
hal.canary
This is half of http://crrev.com/694213002 . Please take a look. After this lands, I will ...
6 years, 1 month ago (2014-11-05 21:40:09 UTC) #4
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/704813002/diff/30013/chrome/renderer/printing/print_web_view_helper_mac.mm File chrome/renderer/printing/print_web_view_helper_mac.mm (right): https://codereview.chromium.org/704813002/diff/30013/chrome/renderer/printing/print_web_view_helper_mac.mm#newcode130 chrome/renderer/printing/print_web_view_helper_mac.mm:130: if (params.display_header_footer) { static_cast https://codereview.chromium.org/704813002/diff/30013/chrome/renderer/printing/print_web_view_helper_mac.mm#newcode140 chrome/renderer/printing/print_web_view_helper_mac.mm:140: scale_factor, (blink::WebCanvas*)canvas); static_cast ...
6 years, 1 month ago (2014-11-05 22:21:38 UTC) #5
hal.canary
https://codereview.chromium.org/704813002/diff/30013/chrome/renderer/printing/print_web_view_helper_mac.mm File chrome/renderer/printing/print_web_view_helper_mac.mm (right): https://codereview.chromium.org/704813002/diff/30013/chrome/renderer/printing/print_web_view_helper_mac.mm#newcode130 chrome/renderer/printing/print_web_view_helper_mac.mm:130: if (params.display_header_footer) { On 2014/11/05 22:21:38, Vitaly Buka wrote: ...
6 years, 1 month ago (2014-11-05 23:10:58 UTC) #6
Vitaly Buka (NO REVIEWS)
lgtm thanks https://codereview.chromium.org/704813002/diff/50001/chrome/renderer/printing/print_web_view_helper_mac.mm File chrome/renderer/printing/print_web_view_helper_mac.mm (right): https://codereview.chromium.org/704813002/diff/50001/chrome/renderer/printing/print_web_view_helper_mac.mm#newcode131 chrome/renderer/printing/print_web_view_helper_mac.mm:131: PrintHeaderAndFooter(static_cast<blink::WebCanvas*>(canvas), btw. why do we need cast ...
6 years, 1 month ago (2014-11-06 18:59:12 UTC) #7
sgurun-gerrit only
On 2014/11/06 18:59:12, Vitaly Buka wrote: > lgtm > > thanks > > https://codereview.chromium.org/704813002/diff/50001/chrome/renderer/printing/print_web_view_helper_mac.mm > ...
6 years, 1 month ago (2014-11-07 00:50:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/704813002/70001
6 years, 1 month ago (2014-11-10 19:52:40 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/23259)
6 years, 1 month ago (2014-11-10 19:56:37 UTC) #12
hal.canary
+tomhudson@google.com
6 years, 1 month ago (2014-11-10 20:00:19 UTC) #14
tomhudson
Skia file deletion LGTM
6 years, 1 month ago (2014-11-10 20:01:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/704813002/70001
6 years, 1 month ago (2014-11-10 20:03:09 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/20744)
6 years, 1 month ago (2014-11-10 20:53:50 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/704813002/70001
6 years, 1 month ago (2014-11-10 22:00:48 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:70001)
6 years, 1 month ago (2014-11-10 22:20:18 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 22:21:05 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5be808e0b7478b27304f5a29b47ba1af1de627d2
Cr-Commit-Position: refs/heads/master@{#303522}

Powered by Google App Engine
This is Rietveld 408576698