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

Issue 2686033005: Move metafile printing code from platform canvas to PaintCanvas (Closed)

Created:
3 years, 10 months ago by enne (OOO)
Modified:
3 years, 10 months ago
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), groby-ooo-7-16, jam, jbroman, Justin Novosad, kinuko+watch, mac-reviews_chromium.org, mlamouri+watch-content_chromium.org, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move metafile printing code from platform canvas to PaintCanvas These functions operate on PaintCanvas and so move them to cc so that they can continue to work when PaintCanvas is not an SkCanvas. Additionally, remove skia::GetMetaData which only served to const cast a pointer that was never const in the first place. As the underlying SkCanvas::getMetaData isn't const, this unconstifies the call chains. BUG=671433 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2686033005 Cr-Commit-Position: refs/heads/master@{#451073} Committed: https://chromium.googlesource.com/chromium/src/+/7b64edf3a16518889d4bce514bd4bc0818e5ead2

Patch Set 1 #

Total comments: 2

Patch Set 2 : Convert more things #

Patch Set 3 : Rebase #

Patch Set 4 : mac build fix #

Patch Set 5 : Rebase, add cc/paint dependency for content/renderer #

Patch Set 6 : Ongoing mac compilation fixes #

Patch Set 7 : Make cc/paint a public dep for content #

Patch Set 8 : Fix missing build_config include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -83 lines) Patch
M cc/paint/paint_canvas.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M cc/paint/paint_canvas.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -0 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M components/printing/renderer/print_web_view_helper_mac.mm View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M printing/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M printing/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M printing/metafile_skia_wrapper.h View 2 chunks +3 lines, -4 lines 0 comments Download
M printing/metafile_skia_wrapper.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M printing/pdf_metafile_skia.h View 3 chunks +5 lines, -6 lines 0 comments Download
M printing/pdf_metafile_skia.cc View 1 2 8 chunks +15 lines, -12 lines 0 comments Download
M skia/ext/platform_canvas.h View 1 chunk +0 lines, -9 lines 0 comments Download
M skia/ext/platform_canvas.cc View 2 chunks +0 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (29 generated)
enne (OOO)
3 years, 10 months ago (2017-02-09 22:05:30 UTC) #3
danakj
https://codereview.chromium.org/2686033005/diff/1/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/2686033005/diff/1/components/printing/renderer/print_web_view_helper.cc#newcode1892 components/printing/renderer/print_web_view_helper.cc:1892: SkCanvas* canvas = metafile->GetVectorCanvasForNewPage( This is a PaintCanvas right? ...
3 years, 10 months ago (2017-02-09 23:05:22 UTC) #4
danakj
cc LGTM
3 years, 10 months ago (2017-02-09 23:06:05 UTC) #5
enne (OOO)
Thanks. Converted a few more metafile callsites based on compiler yelling.
3 years, 10 months ago (2017-02-09 23:42:06 UTC) #6
enne (OOO)
+vandebo as alternate gene for printing owners +fmalita for skia/ext +pdr for blink stuff
3 years, 10 months ago (2017-02-10 22:33:43 UTC) #9
pdr.
blinky bits lgtm
3 years, 10 months ago (2017-02-10 22:46:12 UTC) #12
vandebo (ex-Chrome)
+Lei for printing owners (I'll be removed shortly) cc: groby in case Lei is still ...
3 years, 10 months ago (2017-02-12 04:36:23 UTC) #21
enne (OOO)
+nick for content/renderer changes I added cc/paint as a general dep here instead of making ...
3 years, 10 months ago (2017-02-13 18:54:38 UTC) #25
ncarter (slow)
content lgtm
3 years, 10 months ago (2017-02-13 20:04:47 UTC) #28
enne (OOO)
printing (thestig, gene, dpapad): can one of you review these printing/ changes? fmalita: ping for ...
3 years, 10 months ago (2017-02-15 02:09:20 UTC) #32
f(malita)
skia/ lgtm
3 years, 10 months ago (2017-02-16 14:21:42 UTC) #36
Vitaly Buka (NO REVIEWS)
lgtm
3 years, 10 months ago (2017-02-16 18:11:55 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686033005/140001
3 years, 10 months ago (2017-02-16 18:14:17 UTC) #40
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 20:11:00 UTC) #43
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/7b64edf3a16518889d4bce514bd4...

Powered by Google App Engine
This is Rietveld 408576698