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

Issue 870203005: XFA: Support PNG format in pdfium_test and add image diffing (Closed)

Created:
5 years, 10 months ago by Tom Sepez
Modified:
5 years, 10 months ago
Reviewers:
Lei Zhang, jam
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/master
Visibility:
Public.

Description

XFA: Support PNG format in pdfium_test and add image diffing Lays the groundwork for pixel-diffing tests in pdfium. This is a port of chromium's tools/image_diff/image_diff_png.cc onto the top of the fxcodec-provided version of libpng. pdfium_test is modified to support the new format, and the tools/image_diff.cc image comparison utility is provided, stripped of its base/ dependencies. Unfortunately, this can't be back-ported to origin/main, since the underlying PNG support isn't present inside pdfium. BUG=https://code.google.com/p/pdfium/issues/detail?id=62 R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/af18cb3e7c89d4b6b93765d0f3e5ae6e2e0d8163

Patch Set 1 #

Patch Set 2 : rename executable #

Total comments: 13

Patch Set 3 : Address comments in #8. #

Patch Set 4 : Update other write... routines to use common function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1171 lines, -9 lines) Patch
M samples/BUILD.gn View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A samples/image_diff.cc View 1 2 1 chunk +398 lines, -0 lines 0 comments Download
A samples/image_diff_png.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A samples/image_diff_png.cc View 1 2 1 chunk +644 lines, -0 lines 0 comments Download
M samples/pdfium_test.cc View 1 2 3 8 chunks +65 lines, -9 lines 0 comments Download
M samples/samples.gyp View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Tom Sepez
5 years, 10 months ago (2015-02-05 00:48:07 UTC) #2
Tom Sepez
Lei, please review.
5 years, 10 months ago (2015-02-05 00:49:58 UTC) #3
Tom Sepez
+jam, if you've got good ideas about how to do things cleanly here.
5 years, 10 months ago (2015-02-05 18:35:15 UTC) #5
jam
On 2015/02/05 18:35:15, Tom Sepez wrote: > +jam, if you've got good ideas about how ...
5 years, 10 months ago (2015-02-05 21:24:00 UTC) #6
Tom Sepez
> anything in particular you want me to look at? I looked at this briefly ...
5 years, 10 months ago (2015-02-05 21:38:51 UTC) #7
Lei Zhang
Sounds like a plan. https://codereview.chromium.org/870203005/diff/20001/samples/BUILD.gn File samples/BUILD.gn (right): https://codereview.chromium.org/870203005/diff/20001/samples/BUILD.gn#newcode14 samples/BUILD.gn:14: "image_diff_png.cc", nit: alphabetical order, ditto ...
5 years, 10 months ago (2015-02-05 22:11:08 UTC) #8
Tom Sepez
https://codereview.chromium.org/870203005/diff/20001/samples/BUILD.gn File samples/BUILD.gn (right): https://codereview.chromium.org/870203005/diff/20001/samples/BUILD.gn#newcode14 samples/BUILD.gn:14: "image_diff_png.cc", On 2015/02/05 22:11:08, Lei Zhang wrote: > nit: ...
5 years, 10 months ago (2015-02-05 22:58:21 UTC) #9
Lei Zhang
lgtm
5 years, 10 months ago (2015-02-05 23:05:19 UTC) #10
Tom Sepez
5 years, 10 months ago (2015-02-05 23:06:09 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
af18cb3e7c89d4b6b93765d0f3e5ae6e2e0d8163 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698