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

Issue 2520073003: handle antialiased rendering as premultiplied (Closed)

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

Description

handle antialiased rendering as premultiplied Transparencies and bitmap patterns need to be unpremultiplied after Skia renders them so that PDFium can use its own compositing. Also added some linear (i.e. axial) gradient support, although its unclear if any of the test corpus uses this feature. R=dsinclair@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/687fbde2e4ee13637cb3fd9b1fec39a436ef73d7

Patch Set 1 #

Patch Set 2 : missed an ifdef #

Total comments: 1

Patch Set 3 : more work on premultiplied mismatch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -94 lines) Patch
M core/fpdfapi/render/cpdf_renderstatus.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M core/fpdfapi/render/cpdf_renderstatus.cpp View 1 2 4 chunks +6 lines, -9 lines 0 comments Download
M core/fxge/cfx_fxgedevice.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M core/fxge/cfx_renderdevice.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M core/fxge/dib/fx_dib_main.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/fx_dib.h View 1 2 1 chunk +12 lines, -7 lines 0 comments Download
M core/fxge/ge/cfx_renderdevice.cpp View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M core/fxge/skia/fx_skia_device.h View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 2 16 chunks +44 lines, -53 lines 0 comments Download
M fpdfsdk/fpdfformfill.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
caryclark
4 years, 1 month ago (2016-11-21 21:53:08 UTC) #7
dsinclair
lgtm w/ nit. https://codereview.chromium.org/2520073003/diff/20001/core/fxge/skia/fx_skia_device.cpp File core/fxge/skia/fx_skia_device.cpp (right): https://codereview.chromium.org/2520073003/diff/20001/core/fxge/skia/fx_skia_device.cpp#newcode1896 core/fxge/skia/fx_skia_device.cpp:1896: if (!this->IsMarkedForUnPreMultiply()) Drop the this-> as ...
4 years, 1 month ago (2016-11-21 22:01:49 UTC) #8
caryclark
On 2016/11/21 22:01:49, dsinclair wrote: > lgtm w/ nit. > > https://codereview.chromium.org/2520073003/diff/20001/core/fxge/skia/fx_skia_device.cpp > File core/fxge/skia/fx_skia_device.cpp ...
4 years, 1 month ago (2016-11-22 19:40:50 UTC) #10
dsinclair
lgtm
4 years, 1 month ago (2016-11-22 20:44:03 UTC) #16
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/2520073003/40001
4 years, 1 month ago (2016-11-22 20:44:06 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 20:44:29 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/687fbde2e4ee13637cb3fd9b1fec39a436ef...

Powered by Google App Engine
This is Rietveld 408576698