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

Issue 2120353004: copy graphics state fully (Closed)

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

Description

copy graphics state fully The dash parameters where not copied; the copy could point at random data and cause corpus tests to hang when testing Skia. PDFium measures text directly by calling FreeType. Turn off hinting altogether in Skia so that drawn text matches the metrics that PDFium measures. Premultiply bits retrieved from images, and check to see that the device bits are always premultiplied. Look for null graphics state and matrices. R=thestig@chromium.org,dsinclair@chromium.org BUG=pdfium:532 Committed: https://pdfium.googlesource.com/pdfium/+/a27d49a3e9eafd7fd911a0a6039ce80284ccb463

Patch Set 1 #

Patch Set 2 : copy graphics state fully #

Patch Set 3 : suppress font hinting #

Patch Set 4 : check for null parameters #

Patch Set 5 : one more premultiply #

Patch Set 6 : premultiply input instead of device #

Patch Set 7 : flush render device before destructor #

Patch Set 8 : wip; finding unpremultiplied bitmaps #

Patch Set 9 : wip; remove byte order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -167 lines) Patch
M core/fpdfapi/fpdf_render/fpdf_render.cpp View 1 2 3 4 5 6 7 11 chunks +39 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 2 3 4 5 6 7 4 chunks +16 lines, -3 lines 0 comments Download
M core/fpdfapi/fpdf_render/render_int.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M core/fxge/ge/fx_ge_device.cpp View 1 2 3 4 5 6 7 3 chunks +16 lines, -0 lines 0 comments Download
M core/fxge/include/fx_dib.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M core/fxge/include/fx_ge.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -1 line 0 comments Download
M core/fxge/skia/fx_skia_device.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 2 3 4 5 6 7 8 17 chunks +84 lines, -159 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
caryclark
4 years, 5 months ago (2016-07-05 16:46:10 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2120353004/40001
4 years, 5 months ago (2016-07-05 17:12:57 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_xfa_clang on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_xfa_clang/builds/83)
4 years, 5 months ago (2016-07-05 17:45:18 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2120353004/60001
4 years, 5 months ago (2016-07-05 19:44:47 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_xfa_clang on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_xfa_clang/builds/85)
4 years, 5 months ago (2016-07-05 20:04:36 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2120353004/160001
4 years, 5 months ago (2016-07-06 16:14:03 UTC) #13
caryclark
Even though the last checkin is labeled 'wip: ...', please go ahead and review this. ...
4 years, 5 months ago (2016-07-06 16:32:07 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-06 16:40:10 UTC) #17
dsinclair
lgtm
4 years, 5 months ago (2016-07-06 17:20:07 UTC) #19
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/2120353004/160001
4 years, 5 months ago (2016-07-06 17:20:09 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://pdfium.googlesource.com/pdfium/+/a27d49a3e9eafd7fd911a0a6039ce80284ccb463
4 years, 5 months ago (2016-07-06 17:20:30 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-07-06 17:20:32 UTC) #23
Message was sent while issue was closed.
CQ bit was unchecked.

Powered by Google App Engine
This is Rietveld 408576698