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

Issue 1761453002: get skia port working again (Closed)

Created:
4 years, 9 months ago by caryclark
Modified:
4 years, 9 months ago
CC:
pdfium-reviews_googlegroups.com, Tom Hudson
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Small change to enable skia-backed version of pdfium. This only directs paths to use Skia. Text and bitmaps still use antigrain. Clipping is disabled -- still figuring out pdfium's model for saving and restoring clips. Deleting the Skia canvas is disabled -- there's some build problem where the pdfium and skia libraries are built with slightly different options that I haven't tracked down. This is also why for the moment SkDebugf is defined locally. With this patch and pdf_use_skia=1 a modestly complicated PDF draws (mostly) correctly with pdfium_test. R=dsinclair@chromium.org, tsepez@chromium.org, dsinclair BUG= Committed: https://pdfium.googlesource.com/pdfium/+/979a36af81e6306c1e8b1717a6946dabc757d07d

Patch Set 1 #

Patch Set 2 : wip; tracking down stack corruption #

Patch Set 3 : remove bit rot from skia port #

Total comments: 19

Patch Set 4 : address comments #

Total comments: 4

Patch Set 5 : fix gn build file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -2711 lines) Patch
M BUILD.gn View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
M core/src/fxge/skia/fx_skia_blitter_new.h View 1 2 1 chunk +0 lines, -522 lines 0 comments Download
M core/src/fxge/skia/fx_skia_blitter_new.cpp View 1 2 1 chunk +0 lines, -1809 lines 0 comments Download
M core/src/fxge/skia/fx_skia_device.h View 1 2 3 6 chunks +27 lines, -23 lines 0 comments Download
M core/src/fxge/skia/fx_skia_device.cpp View 1 2 3 4 12 chunks +133 lines, -335 lines 0 comments Download
M pdfium.gyp View 1 2 3 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
caryclark
Dan, here's a very early first cut to give you an idea of which direction ...
4 years, 9 months ago (2016-03-03 18:13:24 UTC) #4
dsinclair
Adding a few more reviewers who've been doing this longer then me.
4 years, 9 months ago (2016-03-03 18:15:18 UTC) #6
dsinclair
This is all makes sense to me. Seems like it removes a lot of crufty ...
4 years, 9 months ago (2016-03-03 18:40:12 UTC) #7
Tom Sepez
https://codereview.chromium.org/1761453002/diff/40001/core/src/fxge/skia/fx_skia_device.cpp File core/src/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/1761453002/diff/40001/core/src/fxge/skia/fx_skia_device.cpp#newcode25 core/src/fxge/skia/fx_skia_device.cpp:25: FX_FLOAT x = pPoints[i].m_PointX, y = pPoints[i].m_PointY; nit: one ...
4 years, 9 months ago (2016-03-03 19:18:20 UTC) #8
caryclark
https://codereview.chromium.org/1761453002/diff/40001/core/src/fxge/skia/fx_skia_device.cpp File core/src/fxge/skia/fx_skia_device.cpp (left): https://codereview.chromium.org/1761453002/diff/40001/core/src/fxge/skia/fx_skia_device.cpp#oldcode153 core/src/fxge/skia/fx_skia_device.cpp:153: // Therefore, we have to extend the line by ...
4 years, 9 months ago (2016-03-03 21:03:44 UTC) #9
dsinclair
https://codereview.chromium.org/1761453002/diff/40001/core/src/fxge/skia/fx_skia_device.cpp File core/src/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/1761453002/diff/40001/core/src/fxge/skia/fx_skia_device.cpp#newcode126 core/src/fxge/skia/fx_skia_device.cpp:126: #if 0 // fix me : mismatch on allocator ...
4 years, 9 months ago (2016-03-03 21:15:18 UTC) #10
caryclark
Thanks for egging me to try out the GN build. It's much, much, faster than ...
4 years, 9 months ago (2016-03-03 21:32:59 UTC) #11
dsinclair
lgtm
4 years, 9 months ago (2016-03-03 21:34:53 UTC) #12
Tom Sepez
On 2016/03/03 21:34:53, dsinclair wrote: > lgtm Deferring to dan's LGTM.
4 years, 9 months ago (2016-03-03 21:45:15 UTC) #13
caryclark
4 years, 9 months ago (2016-03-04 19:35:06 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
979a36af81e6306c1e8b1717a6946dabc757d07d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698