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

Issue 1828283002: support gradients and stroke+fill (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@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

support gradients and stroke+fill To draw paths that are stroked and filled with a pair of colors, reduce the fill by the width of the stroke. This is implemented with path ops subtracting the resolved stroke shape from the fill shape. This permits rendering the result without requiring an offscreen bitmap. The implementation for stroke+fill requires a new entry into the graphics engine, so a bit was added to device caps for that. Extract the gradient information out of the axial gradient function descriptions, and when possible, use Skia to draw the linear gradient directly. This requires making the function descriptions non-opaque, and adding a bit to device caps for another entry into the graphics engine. BUG= Committed: https://pdfium.googlesource.com/pdfium/+/342f6fa66f6d843fe07d9b6a133656f83c8d62f6

Patch Set 1 #

Total comments: 34

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -75 lines) Patch
M core/fpdfapi/fpdf_page/fpdf_page_func.cpp View 1 7 chunks +17 lines, -41 lines 0 comments Download
M core/fpdfapi/fpdf_page/pageint.h View 1 1 chunk +50 lines, -6 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M core/fxge/agg/fx_agg_driver.h View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/apple/apple_int.h View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/ge/fx_ge_device.cpp View 1 3 chunks +27 lines, -4 lines 0 comments Download
M core/fxge/skia/fx_skia_device.h View 1 chunk +5 lines, -0 lines 0 comments Download
M core/fxge/skia/fx_skia_device.cpp View 1 6 chunks +147 lines, -16 lines 0 comments Download
M core/fxge/win32/win32_int.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M core/include/fxge/fx_ge.h View 1 4 chunks +21 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
caryclark
PTAL. This is mostly rearranging foxit's code. Let me know what rewriting-refactoring is required to ...
4 years, 9 months ago (2016-03-24 16:42:28 UTC) #2
dsinclair
Overall, this looks good. The biggest thing I can see is if you could pull ...
4 years, 9 months ago (2016-03-24 17:43:38 UTC) #3
Tom Sepez
As is the case with most of these kinds of CLs, your code is fine, ...
4 years, 9 months ago (2016-03-24 18:07:08 UTC) #4
caryclark
https://codereview.chromium.org/1828283002/diff/1/core/fpdfapi/fpdf_page/fpdf_page_func.cpp File core/fpdfapi/fpdf_page/fpdf_page_func.cpp (right): https://codereview.chromium.org/1828283002/diff/1/core/fpdfapi/fpdf_page/fpdf_page_func.cpp#newcode837 core/fpdfapi/fpdf_page/fpdf_page_func.cpp:837: CPDF_Function* pFunc = NULL; On 2016/03/24 18:07:07, Tom Sepez ...
4 years, 9 months ago (2016-03-25 20:47:56 UTC) #5
Tom Sepez
lgtm
4 years, 9 months ago (2016-03-25 21:03:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1828283002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1828283002/20001
4 years, 9 months ago (2016-03-25 21:08:05 UTC) #8
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 21:08:34 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/342f6fa66f6d843fe07d9b6a133656f83c8d...

Powered by Google App Engine
This is Rietveld 408576698