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

Issue 2530343004: enable skia gradients, fix bugs (Closed)

Created:
4 years ago by caryclark
Modified:
4 years ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

enable skia gradients, fix bugs Allow shading to use Skia for some gradients; linear, radial, and coons patch. The corpus uncovered a few gradient-related bugs in the Skia driver which are fixed as well. Fix corpus 11.pdf by ignoring zero area filled paths. PDFium uses CFX_PathData::GetZeroAreaPath() to determine if a path that doesn't enclosing anything should be drawn anyway, and CFX_AggDeviceDriver::GetDriverType() returns 1 so that the empty path is tweaked so that it doesn't draw too often. There are no tests in the corpus that show the utility of this approach; 11.pdf draws correctly if the zero area paths are ignored. Standardize debugging output so that a separate tool can visualize it. R=dsinclair@chromium.org, thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/d65fd10e080751e42b9ea2696ae3f4e54839461c

Patch Set 1 #

Patch Set 2 : fix zero fill and add skia gradients #

Patch Set 3 : turn off debugging #

Patch Set 4 : fix linux and mac builds #

Patch Set 5 : fix linux #

Patch Set 6 : add skia native coons patch #

Patch Set 7 : fix mac build #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M core/fxge/cfx_renderdevice.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M core/fxge/ge/cfx_renderdevice.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (24 generated)
caryclark
4 years ago (2016-11-30 13:44:22 UTC) #5
dsinclair
lgtm
4 years ago (2016-12-05 14:22:44 UTC) #24
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/2530343004/120001
4 years ago (2016-12-05 14:22:56 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-05 14:47:19 UTC) #28
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://pdfium.googlesource.com/pdfium/+/d65fd10e080751e42b9ea2696ae3f4e54839...

Powered by Google App Engine
This is Rietveld 408576698