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

Issue 1925233003: SkPDF: Use type 2/3 shading for gradient shaders (Closed)

Created:
4 years, 7 months ago by Rik
Modified:
4 years, 6 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed hal's comment #

Total comments: 2

Patch Set 3 : fix for colorstops that are smaller than their predecessor #

Patch Set 4 : add detection of coincident circles + detect perspective transform #

Patch Set 5 : addressed hal's comment #

Patch Set 6 : redesigned gradient stop logic #

Total comments: 1

Patch Set 7 : Added Adobe to the authors file #

Patch Set 8 : removed whitespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -90 lines) Patch
M AUTHORS View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 3 4 5 6 7 5 chunks +269 lines, -89 lines 0 comments Download

Messages

Total messages: 39 (12 generated)
hal.canary
Thanks. I'm looking at it.
4 years, 7 months ago (2016-04-28 22:44:37 UTC) #3
reed1
I wonder if we can ever try a virtual on SkShader for PDF, so that ...
4 years, 7 months ago (2016-04-29 00:38:41 UTC) #5
Rik
On 2016/04/29 00:38:41, reed1 wrote: > I wonder if we can ever try a virtual ...
4 years, 7 months ago (2016-04-29 03:36:21 UTC) #6
Rik
4 years, 7 months ago (2016-04-29 03:36:33 UTC) #7
hal.canary
https://codereview.chromium.org/1925233003/diff/1/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/1925233003/diff/1/src/pdf/SkPDFShader.cpp#newcode195 src/pdf/SkPDFShader.cpp:195: retval->insertObject("C0", sk_ref_sp(c0.get())); retval->insertObject("C0", c0); should work. sk_sp has a ...
4 years, 7 months ago (2016-04-29 09:56:25 UTC) #8
Rik
4 years, 7 months ago (2016-04-29 21:35:11 UTC) #9
hal.canary
https://codereview.chromium.org/1925233003/diff/20001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/1925233003/diff/20001/src/pdf/SkPDFShader.cpp#newcode822 src/pdf/SkPDFShader.cpp:822: pdfShader->insertObject("Function", std::move(gradientStitchCode(*info))); don't need the std::move here, it is ...
4 years, 7 months ago (2016-05-04 12:57:17 UTC) #10
hal.canary
Something seems to be wrong with the output, depending on the rasterizer. For example, with ...
4 years, 7 months ago (2016-05-04 13:57:27 UTC) #11
hal.canary
On 2016/05/04 13:57:27, Hal Canary wrote: > By the way, is there a command-line command ...
4 years, 7 months ago (2016-05-04 14:56:12 UTC) #12
reed1
I think we want to push hard to write the most efficient PDF, assuming it ...
4 years, 7 months ago (2016-05-04 15:35:07 UTC) #13
hal.canary
I looked at the diffs on another rasteriser, MacOS's CoreGraphics. The only GMs that produced ...
4 years, 7 months ago (2016-05-04 17:21:59 UTC) #14
hal.canary
On 2016/05/04 17:21:59, Hal Canary wrote: > I looked at the diffs on another rasteriser, ...
4 years, 7 months ago (2016-05-04 17:32:22 UTC) #15
caryclark
https://codereview.chromium.org/1925233003/diff/1/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/1925233003/diff/1/src/pdf/SkPDFShader.cpp#newcode808 src/pdf/SkPDFShader.cpp:808: info->fTileMode == SkShader::kClamp_TileMode; It is unfortunate that this leaves ...
4 years, 7 months ago (2016-05-04 17:38:26 UTC) #16
hal.canary
I also think perspective is the other case we aren't handling correctly. https://codereview.chromium.org/1925233003/diff/20001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp ...
4 years, 7 months ago (2016-05-04 17:42:59 UTC) #17
Rik
On 2016/05/04 14:56:12, Hal Canary wrote: > On 2016/05/04 13:57:27, Hal Canary wrote: > > ...
4 years, 7 months ago (2016-05-04 18:27:36 UTC) #18
Rik
On 2016/05/04 17:42:59, Hal Canary wrote: > I also think perspective is the other case ...
4 years, 7 months ago (2016-05-04 21:56:41 UTC) #19
Rik
On 2016/05/04 17:38:26, caryclark wrote: > https://codereview.chromium.org/1925233003/diff/1/src/pdf/SkPDFShader.cpp > File src/pdf/SkPDFShader.cpp (right): > > https://codereview.chromium.org/1925233003/diff/1/src/pdf/SkPDFShader.cpp#newcode808 > ...
4 years, 7 months ago (2016-05-04 21:58:31 UTC) #20
Rik
On 2016/05/04 17:21:59, Hal Canary wrote: > I looked at the diffs on another rasteriser, ...
4 years, 7 months ago (2016-05-04 22:36:56 UTC) #21
Rik
> Can you check if patch #3 fixes those for you? > I saw a ...
4 years, 7 months ago (2016-05-10 03:05:25 UTC) #22
Rik
On 2016/05/10 03:05:25, Rik wrote: > > Can you check if patch #3 fixes those ...
4 years, 7 months ago (2016-05-22 04:00:29 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925233003/100001
4 years, 6 months ago (2016-06-17 14:07:33 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/10510)
4 years, 6 months ago (2016-06-17 14:09:05 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925233003/120001
4 years, 6 months ago (2016-06-17 15:42:06 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-17 15:57:56 UTC) #33
hal.canary
lgtm, with 1 nit https://codereview.chromium.org/1925233003/diff/100001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/1925233003/diff/100001/src/pdf/SkPDFShader.cpp#newcode190 src/pdf/SkPDFShader.cpp:190: nit: please remove trailing whitespace.
4 years, 6 months ago (2016-06-17 17:08:56 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925233003/140001
4 years, 6 months ago (2016-06-17 19:18:31 UTC) #37
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 19:38:57 UTC) #39
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/e75cdcb85b73c4484a992bf5531394632e757870

Powered by Google App Engine
This is Rietveld 408576698