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

Issue 18585002: Implemented transparent gradients (Closed)

Created:
7 years, 5 months ago by ducky
Modified:
7 years, 4 months ago
CC:
skia-review_googlegroups.com, edisonn
Visibility:
Public.

Description

Implemented transparent gradients Committed: http://code.google.com/p/skia/source/detail?r=10297

Patch Set 1 #

Total comments: 58

Patch Set 2 : Addresses stylistic issues #

Patch Set 3 : Removed some leftover debugging stuff #

Patch Set 4 : Fixes isValid() in SkPDFGradientShader, fixes tinybitmap regression #

Total comments: 59

Patch Set 5 : Addresses more stylistic issues. #

Total comments: 25

Patch Set 6 : Addresses stylistic issues. Moves SkPDFResourceDict into separate CL. #

Patch Set 7 : Minor clean-up of previous patch set #

Total comments: 7

Patch Set 8 : More code review fixes. #

Total comments: 12

Patch Set 9 : Code review fixes and rebase for SkPDFResourceDict. #

Patch Set 10 : Clean-up for previous CL #

Total comments: 2

Patch Set 11 : Cleaup for passing graphics state to create_pattern_fill_content #

Patch Set 12 : Deduplicate resource name generation in create_pattern_fill_content #

Patch Set 13 : Deduplicate pattern content generation code #

Patch Set 14 : More deduplication #

Total comments: 2

Patch Set 15 : Variable naming change #

Total comments: 24

Patch Set 16 : Style fixes and more comments #

Patch Set 17 : Revert SkPDFStream to SkData conversions, add SK_AlphaOPAQUE #

Patch Set 18 : Update detachAsStream() #

Patch Set 19 : Merge new SkPDFResourceDict #

Patch Set 20 : Merge new SkPDFResourceDict method names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -63 lines) Patch
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +9 lines, -11 lines 0 comments Download
M src/pdf/SkPDFFormXObject.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +12 lines, -0 lines 0 comments Download
M src/pdf/SkPDFFormXObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +32 lines, -4 lines 0 comments Download
M src/pdf/SkPDFGraphicState.h View 1 2 chunks +10 lines, -3 lines 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 1 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -2 lines 0 comments Download
M src/pdf/SkPDFShader.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 10 chunks +267 lines, -43 lines 0 comments Download
M src/pdf/SkPDFUtils.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M src/pdf/SkPDFUtils.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
ducky
Parts of this code look pretty terrible. In particular: - A new FormXObject constructor which ...
7 years, 5 months ago (2013-07-02 23:20:21 UTC) #1
vandebo (ex-Chrome)
+cc edisonn - Please at least take a look so that you can stay familiar ...
7 years, 5 months ago (2013-07-03 17:07:00 UTC) #2
ducky
Addresses review comments: - Refactoring and stylistic changes - Added SkPDFResourceDict to cleanly manage resource ...
7 years, 5 months ago (2013-07-03 23:32:08 UTC) #3
vandebo (ex-Chrome)
https://codereview.chromium.org/18585002/diff/1/src/pdf/SkPDFFormXObject.cpp File src/pdf/SkPDFFormXObject.cpp (right): https://codereview.chromium.org/18585002/diff/1/src/pdf/SkPDFFormXObject.cpp#newcode47 src/pdf/SkPDFFormXObject.cpp:47: if (!device->initialTransform().isIdentity()) { On 2013/07/03 23:32:09, ducky wrote: > ...
7 years, 5 months ago (2013-07-08 19:02:25 UTC) #4
ducky
https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFFormXObject.cpp File src/pdf/SkPDFFormXObject.cpp (right): https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFFormXObject.cpp#newcode45 src/pdf/SkPDFFormXObject.cpp:45: commonInit(NULL); On 2013/07/08 19:02:25, vandebo wrote: > nit: move ...
7 years, 5 months ago (2013-07-09 02:56:23 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFFormXObject.cpp File src/pdf/SkPDFFormXObject.cpp (right): https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFFormXObject.cpp#newcode64 src/pdf/SkPDFFormXObject.cpp:64: void SkPDFFormXObject::commonInit(const char colorSpace[]) { On 2013/07/09 02:56:23, ducky ...
7 years, 5 months ago (2013-07-09 17:47:43 UTC) #6
ducky
SkPDFResourceDict moved into separate CL 18977002, and several more stylistic improvements. https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFFormXObject.cpp File src/pdf/SkPDFFormXObject.cpp (right): ...
7 years, 5 months ago (2013-07-10 21:42:26 UTC) #7
vandebo (ex-Chrome)
https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFShader.cpp#newcode463 src/pdf/SkPDFShader.cpp:463: class SkPDFGradientShader : public SkPDFStream, public SkPDFShader { On ...
7 years, 5 months ago (2013-07-11 22:22:23 UTC) #8
ducky
Fixed code review comments, along with a little more cleanup. https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/18585002/diff/23001/src/pdf/SkPDFShader.cpp#newcode672 ...
7 years, 5 months ago (2013-07-12 03:39:59 UTC) #9
vandebo (ex-Chrome)
a few nits... https://codereview.chromium.org/18585002/diff/47002/src/pdf/SkPDFFormXObject.cpp File src/pdf/SkPDFFormXObject.cpp (right): https://codereview.chromium.org/18585002/diff/47002/src/pdf/SkPDFFormXObject.cpp#newcode59 src/pdf/SkPDFFormXObject.cpp:59: init("DeviceRGB", resourceDict, bboxArray); On 2013/07/12 03:40:00, ...
7 years, 5 months ago (2013-07-12 21:41:43 UTC) #10
ducky
https://codereview.chromium.org/18585002/diff/31002/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/18585002/diff/31002/src/pdf/SkPDFShader.cpp#newcode677 src/pdf/SkPDFShader.cpp:677: SkPDFGraphicState* SkPDFAlphaFunctionShader::CreateSMaskGraphicState( On 2013/07/12 21:41:44, vandebo wrote: > Instead ...
7 years, 5 months ago (2013-07-12 23:32:34 UTC) #11
vandebo (ex-Chrome)
just waiting on depe https://codereview.chromium.org/18585002/diff/81001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/18585002/diff/81001/src/pdf/SkPDFShader.cpp#newcode712 src/pdf/SkPDFShader.cpp:712: SkString setGs = SkString(); nit: ...
7 years, 5 months ago (2013-07-15 16:40:06 UTC) #12
ducky
Clean-up for create_pattern_fill_content and deduplication of apply pattern content code. https://codereview.chromium.org/18585002/diff/81001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/18585002/diff/81001/src/pdf/SkPDFShader.cpp#newcode712 ...
7 years, 5 months ago (2013-07-15 18:04:10 UTC) #13
vandebo (ex-Chrome)
https://codereview.chromium.org/18585002/diff/104001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/18585002/diff/104001/src/pdf/SkPDFShader.cpp#newcode655 src/pdf/SkPDFShader.cpp:655: static SkData* create_pattern_fill_content(int applyGs, SkRect& bounds) { nit: applyGS ...
7 years, 5 months ago (2013-07-15 18:11:39 UTC) #14
ducky
Fixes code review comments. Also rebase with new SkPDFStream-SkData code. https://codereview.chromium.org/18585002/diff/104001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/18585002/diff/104001/src/pdf/SkPDFShader.cpp#newcode655 ...
7 years, 5 months ago (2013-07-15 18:51:28 UTC) #15
edisonn
https://codereview.chromium.org/18585002/diff/108001/src/pdf/SkPDFFormXObject.cpp File src/pdf/SkPDFFormXObject.cpp (right): https://codereview.chromium.org/18585002/diff/108001/src/pdf/SkPDFFormXObject.cpp#newcode79 src/pdf/SkPDFFormXObject.cpp:79: group->insertName("CS", colorSpace); ColorSpace is required. Also I think we ...
7 years, 5 months ago (2013-07-17 17:52:24 UTC) #16
ducky
Style corrections based on review and more comments. What's the preferred way to define an ...
7 years, 5 months ago (2013-07-17 22:18:20 UTC) #17
ducky
This reverts the SkPDFStream to SkData CL and uses SkStream::detachAsStream() instead. Also uses the SK_AlphaOPAQUE ...
7 years, 5 months ago (2013-07-19 18:47:02 UTC) #18
vandebo (ex-Chrome)
LGTM. edison, are you happy?
7 years, 5 months ago (2013-07-19 21:22:08 UTC) #19
ducky
Update method names from new SkPDFResourceDict
7 years, 5 months ago (2013-07-23 20:53:56 UTC) #20
vandebo (ex-Chrome)
Still LGTM
7 years, 5 months ago (2013-07-23 20:56:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/richardlin@chromium.org/18585002/154001
7 years, 5 months ago (2013-07-23 23:09:28 UTC) #22
commit-bot: I haz the power
Change committed as 10297
7 years, 5 months ago (2013-07-23 23:16:15 UTC) #23
fmalita_google_do_not_use
On 2013/07/23 23:16:15, I haz the power (commit-bot) wrote: > Change committed as 10297 Mac ...
7 years, 5 months ago (2013-07-24 13:03:20 UTC) #24
fmalita_google_do_not_use
Ping - still seeing Mac GM failures for radial_gradient_pdf.png & gradtext_pdf.png.
7 years, 5 months ago (2013-07-24 22:12:14 UTC) #25
ducky
7 years, 5 months ago (2013-07-24 22:17:53 UTC) #26
Message was sent while issue was closed.
On 2013/07/24 22:12:14, fmalita wrote:
> Ping - still seeing Mac GM failures for radial_gradient_pdf.png &
> gradtext_pdf.png.

Looks like my reply emails don't actually get attached to the CL, nor were you
included in the reply-to field...

Anyways, those are expected to be "failing", in that those are now fixed from
the previous incorrect baselines. alphagradients_pdf.png is also fixed, and
modecolorfilters_pdf.png has changed.

Powered by Google App Engine
This is Rietveld 408576698