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

Issue 1776313002: Add bitmaps and skp output to Skia port (Closed)

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

Description

Add bitmaps and skp output to Skia port This is a first-cut at supporting bitmaps. Also added a --skp option to pdfium_test to generate a Skia picture file. The picture file can be loaded in Skia's SampleApp, debugger, or skiaserver to examine the generated picture. (This also includes fixes suggested in the prior Skia CL. My apologies for fat-fingers abandoning that one.) R=dsinclair@chromium.org, tsepez@chromium.org, dsinclair Committed: https://pdfium.googlesource.com/pdfium/+/399be5bf559f72d4649a60320a3d802f6b21780b

Patch Set 1 #

Patch Set 2 : wip; add skp output to test framework #

Total comments: 25

Patch Set 3 : wip; clean up calls to create skia device #

Patch Set 4 : wip; remove access to private agg driver fields #

Patch Set 5 : fix form fill params #

Patch Set 6 : address comments #

Patch Set 7 : address some more comments #

Patch Set 8 : address more comments #

Patch Set 9 : fix bitmap use of uniqueptr #

Total comments: 8

Patch Set 10 : address tsepez comments #

Patch Set 11 : add implementation define in app context #

Patch Set 12 : match existing define #

Total comments: 8

Patch Set 13 : address comments and fix gn #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -112 lines) Patch
M BUILD.gn View 1 2 8 9 10 11 12 1 chunk +2 lines, -6 lines 0 comments Download
M core/include/fxge/fx_ge.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M core/src/fxge/agg/fx_agg_driver.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M core/src/fxge/skia/fx_skia_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -1 line 1 comment Download
M core/src/fxge/skia/fx_skia_device.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 18 chunks +251 lines, -91 lines 0 comments Download
M fpdfsdk/src/fpdfformfill.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +40 lines, -10 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 2 3 4 5 6 7 2 chunks +21 lines, -1 line 0 comments Download
M public/fpdf_formfill.h View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M public/fpdfview.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M samples/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -1 line 0 comments Download
M samples/pdfium_test.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +52 lines, -2 lines 1 comment Download
M samples/samples.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
caryclark
Dan, this is very much work-in-progress so don't feel like you have to spend much ...
4 years, 9 months ago (2016-03-09 22:40:15 UTC) #3
dsinclair
On 2016/03/09 22:40:15, caryclark wrote: > Dan, this is very much work-in-progress so don't feel ...
4 years, 9 months ago (2016-03-10 01:27:10 UTC) #4
dsinclair
Left a few general comments. The one big issue is we can't change the signature ...
4 years, 9 months ago (2016-03-10 14:38:54 UTC) #5
caryclark
https://codereview.chromium.org/1776313002/diff/20001/core/include/fxge/fx_ge.h File core/include/fxge/fx_ge.h (right): https://codereview.chromium.org/1776313002/diff/20001/core/include/fxge/fx_ge.h#newcode451 core/include/fxge/fx_ge.h:451: void* m_recorder; On 2016/03/10 14:38:54, dsinclair wrote: > Is ...
4 years, 9 months ago (2016-03-10 20:44:55 UTC) #6
dsinclair
https://codereview.chromium.org/1776313002/diff/20001/core/src/fxge/skia/fx_skia_device.cpp File core/src/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/1776313002/diff/20001/core/src/fxge/skia/fx_skia_device.cpp#newcode211 core/src/fxge/skia/fx_skia_device.cpp:211: // note that PDF's y-axis goes up; Skia's y-axis ...
4 years, 9 months ago (2016-03-10 20:47:12 UTC) #7
caryclark
ready for more formal review
4 years, 9 months ago (2016-03-10 22:17:54 UTC) #12
dsinclair
I'm heading out for the weekend, I'll try to take a look but it maybe ...
4 years, 9 months ago (2016-03-10 22:23:45 UTC) #13
Tom Sepez
https://codereview.chromium.org/1776313002/diff/160001/core/src/fxge/skia/fx_skia_device.cpp File core/src/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/1776313002/diff/160001/core/src/fxge/skia/fx_skia_device.cpp#newcode454 core/src/fxge/skia/fx_skia_device.cpp:454: std::unique_ptr<uint8_t[]> dstStorage((uint8_t*) nullptr); Can't you just declare this as ...
4 years, 9 months ago (2016-03-10 22:55:32 UTC) #14
caryclark
https://codereview.chromium.org/1776313002/diff/160001/core/src/fxge/skia/fx_skia_device.cpp File core/src/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/1776313002/diff/160001/core/src/fxge/skia/fx_skia_device.cpp#newcode454 core/src/fxge/skia/fx_skia_device.cpp:454: std::unique_ptr<uint8_t[]> dstStorage((uint8_t*) nullptr); On 2016/03/10 22:55:32, Tom Sepez wrote: ...
4 years, 9 months ago (2016-03-11 12:40:34 UTC) #15
Tom Sepez
https://codereview.chromium.org/1776313002/diff/220001/core/src/fxge/agg/fx_agg_driver.h File core/src/fxge/agg/fx_agg_driver.h (right): https://codereview.chromium.org/1776313002/diff/220001/core/src/fxge/agg/fx_agg_driver.h#newcode136 core/src/fxge/agg/fx_agg_driver.h:136: virtual uint8_t* GetBuffer() const; Nit: Pre-existing condition, but why ...
4 years, 9 months ago (2016-03-11 17:38:46 UTC) #16
caryclark
https://codereview.chromium.org/1776313002/diff/220001/core/src/fxge/agg/fx_agg_driver.h File core/src/fxge/agg/fx_agg_driver.h (right): https://codereview.chromium.org/1776313002/diff/220001/core/src/fxge/agg/fx_agg_driver.h#newcode136 core/src/fxge/agg/fx_agg_driver.h:136: virtual uint8_t* GetBuffer() const; On 2016/03/11 17:38:45, Tom Sepez ...
4 years, 9 months ago (2016-03-13 01:02:38 UTC) #17
dsinclair
https://codereview.chromium.org/1776313002/diff/240001/core/src/fxge/skia/fx_skia_device.h File core/src/fxge/skia/fx_skia_device.h (right): https://codereview.chromium.org/1776313002/diff/240001/core/src/fxge/skia/fx_skia_device.h#newcode23 core/src/fxge/skia/fx_skia_device.h:23: CFX_SkiaDeviceDriver(SkPictureRecorder* recorder); nit: explicit https://codereview.chromium.org/1776313002/diff/240001/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/1776313002/diff/240001/samples/pdfium_test.cc#newcode476 ...
4 years, 9 months ago (2016-03-14 13:53:41 UTC) #18
dsinclair
lgtm
4 years, 9 months ago (2016-03-14 13:54:08 UTC) #19
Tom Sepez
lgtm
4 years, 9 months ago (2016-03-14 17:58:31 UTC) #20
caryclark
4 years, 9 months ago (2016-03-14 20:51:35 UTC) #22
Message was sent while issue was closed.
Committed patchset #13 (id:240001) manually as
399be5bf559f72d4649a60320a3d802f6b21780b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698