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

Issue 1812263002: fix windows build; add blend modes (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
Project:
pdfium
Visibility:
Public.

Description

fix windows build; add blend modes Use FreeType instead of Direct Write on Windows. Since PDFium currently uses the graphics engine to draw but not to measure, the graphics engine needs to always use FreeType to get consistent metrics. Add a translation from PDF's blend modes to Skia's xfer modes. Turn on subpixel positioning for text to get more precise glyph placement. Pass the alpha through to get proper bitmap transparency. Address earlier nits. R=dsinclair@chromium.org, tsepez@chromium.org, dsinclair Committed: https://pdfium.googlesource.com/pdfium/+/cf6bffb79f6e62d096908e6629daba5525728272

Patch Set 1 #

Total comments: 1

Patch Set 2 : use freetype instead of direct write #

Patch Set 3 : fixed some formatting #

Patch Set 4 : wip; experimenting with gradients #

Patch Set 5 : update skia deps #

Patch Set 6 : fix formatting #

Total comments: 4

Patch Set 7 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -40 lines) Patch
M core/fxge/skia/fx_skia_device.h View 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 2 3 4 5 6 11 chunks +75 lines, -28 lines 0 comments Download
M skia/skia_library.gypi View 1 2 3 4 5 7 chunks +9 lines, -11 lines 0 comments Download
M third_party/third_party.gyp View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
caryclark
4 years, 9 months ago (2016-03-18 18:22:54 UTC) #1
Tom Sepez
lgtm
4 years, 9 months ago (2016-03-18 20:34:52 UTC) #2
dsinclair
https://codereview.chromium.org/1812263002/diff/1/skia/skia_library.gypi File skia/skia_library.gypi (left): https://codereview.chromium.org/1812263002/diff/1/skia/skia_library.gypi#oldcode41 skia/skia_library.gypi:41: '../third_party/skia/src/ports/SkFontMgr_empty_factory.cpp', Does this still build on linux if you ...
4 years, 9 months ago (2016-03-18 23:23:27 UTC) #3
caryclark
On 2016/03/18 23:23:27, dsinclair wrote: > https://codereview.chromium.org/1812263002/diff/1/skia/skia_library.gypi > File skia/skia_library.gypi (left): > > https://codereview.chromium.org/1812263002/diff/1/skia/skia_library.gypi#oldcode41 > ...
4 years, 9 months ago (2016-03-21 11:23:16 UTC) #4
caryclark
4 years, 9 months ago (2016-03-21 16:35:30 UTC) #6
caryclark
note that Skia DEPS needs to be updated before this CL makes sense -- not ...
4 years, 9 months ago (2016-03-21 16:44:22 UTC) #7
dsinclair
On 2016/03/21 16:44:22, caryclark wrote: > note that Skia DEPS needs to be updated before ...
4 years, 9 months ago (2016-03-21 16:45:32 UTC) #8
caryclark
PTAL. This works with the current Skia DEPS and strips out the more complicated parts ...
4 years, 9 months ago (2016-03-24 00:58:50 UTC) #9
dsinclair
https://codereview.chromium.org/1812263002/diff/100001/core/fxge/skia/fx_skia_device.cpp File core/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/1812263002/diff/100001/core/fxge/skia/fx_skia_device.cpp#newcode100 core/fxge/skia/fx_skia_device.cpp:100: static SkMatrix ToSkMatrix(const CFX_Matrix& m) { nit: Can these ...
4 years, 9 months ago (2016-03-24 01:45:45 UTC) #10
caryclark
https://codereview.chromium.org/1812263002/diff/100001/core/fxge/skia/fx_skia_device.cpp File core/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/1812263002/diff/100001/core/fxge/skia/fx_skia_device.cpp#newcode100 core/fxge/skia/fx_skia_device.cpp:100: static SkMatrix ToSkMatrix(const CFX_Matrix& m) { On 2016/03/24 01:45:45, ...
4 years, 9 months ago (2016-03-24 13:48:03 UTC) #11
dsinclair
lgtm
4 years, 9 months ago (2016-03-24 14:19:09 UTC) #12
caryclark
4 years, 9 months ago (2016-03-24 14:23:21 UTC) #14
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
cf6bffb79f6e62d096908e6629daba5525728272 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698