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

Issue 1585813004: SkValue: SkXfermode (Closed)

Created:
4 years, 11 months ago by hal.canary
Modified:
4 years, 11 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkValue: SkXfermode Implement: template<> SkValue SkToValue<SkXfermode>(const SkXfermode*); template<> bool SkFromValue<SkXfermode*>(const SkValue&, SkXfermode**); GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1585813004 NOTRY=true Committed: https://skia.googlesource.com/skia/+/27a6e86fb17fce7ce962b9080eae36926e87d568

Patch Set 1 #

Patch Set 2 : unit test! #

Patch Set 3 : 2016-01-14 (Thursday) 16:27:56 EST #

Total comments: 6

Patch Set 4 : response, also dump #

Total comments: 33

Patch Set 5 : 2016-01-15 (Friday) 08:39:02 EST #

Patch Set 6 : 2016-01-15 (Friday) 11:08:28 EST #

Total comments: 6

Patch Set 7 : 2016-01-15 (Friday) 14:43:14 EST #

Total comments: 6

Patch Set 8 : fix unit tests #

Patch Set 9 : 2016-01-15 (Friday) 15:39:23 EST #

Patch Set 10 : type assertions #

Patch Set 11 : 2016-01-21 (Thursday) 10:45:48 EST #

Patch Set 12 : wrong cast fixed #

Patch Set 13 : fix macro redef #

Total comments: 10

Patch Set 14 : 2016-01-21 (Thursday) 12:06:57 EST #

Patch Set 15 : comments from mtklein #

Total comments: 14

Patch Set 16 : mor changes #

Patch Set 17 : get() #

Total comments: 4

Patch Set 18 : missed one #

Patch Set 19 : space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -42 lines) Patch
M gyp/effects.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkXfermode.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M include/effects/SkLerpXfermode.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M include/effects/SkPixelXorXfermode.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkValue.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -6 lines 0 comments Download
M src/core/SkValue.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -35 lines 0 comments Download
A src/core/SkValueKeys.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +20 lines, -0 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +10 lines, -0 lines 0 comments Download
M src/core/SkXfermode_proccoeff.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M src/effects/SkArithmeticMode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +14 lines, -0 lines 0 comments Download
M src/effects/SkLerpXfermode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -0 lines 0 comments Download
M src/effects/SkPixelXorXfermode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -0 lines 0 comments Download
A src/effects/SkToFromValue.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download
A src/effects/SkToFromValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +131 lines, -0 lines 0 comments Download
M tests/ValueTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 80 (34 generated)
hal.canary
PTAL
4 years, 11 months ago (2016-01-14 21:13:10 UTC) #3
mtklein
https://codereview.chromium.org/1585813004/diff/40001/include/core/SkXfermode.h File include/core/SkXfermode.h (right): https://codereview.chromium.org/1585813004/diff/40001/include/core/SkXfermode.h#newcode233 include/core/SkXfermode.h:233: virtual SkValue represent() const = 0; -> value(), asValue() ...
4 years, 11 months ago (2016-01-14 22:58:28 UTC) #4
hal.canary
https://codereview.chromium.org/1585813004/diff/40001/include/core/SkXfermode.h File include/core/SkXfermode.h (right): https://codereview.chromium.org/1585813004/diff/40001/include/core/SkXfermode.h#newcode233 include/core/SkXfermode.h:233: virtual SkValue represent() const = 0; On 2016/01/14 at ...
4 years, 11 months ago (2016-01-14 23:43:10 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/60001
4 years, 11 months ago (2016-01-14 23:43:27 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-14 23:55:09 UTC) #9
mtklein
https://codereview.chromium.org/1585813004/diff/60001/src/core/SkValue.cpp File src/core/SkValue.cpp (right): https://codereview.chromium.org/1585813004/diff/60001/src/core/SkValue.cpp#newcode24 src/core/SkValue.cpp:24: reinterpret_cast<SkData*>(fBytes)->ref(); WTF? If you want to have an SkData* ...
4 years, 11 months ago (2016-01-15 00:25:22 UTC) #10
hal.canary
https://codereview.chromium.org/1585813004/diff/60001/src/core/SkValue.cpp File src/core/SkValue.cpp (right): https://codereview.chromium.org/1585813004/diff/60001/src/core/SkValue.cpp#newcode24 src/core/SkValue.cpp:24: reinterpret_cast<SkData*>(fBytes)->ref(); On 2016/01/15 at 00:25:22, mtklein wrote: > WTF? ...
4 years, 11 months ago (2016-01-15 13:38:56 UTC) #11
mtklein
https://codereview.chromium.org/1585813004/diff/60001/src/core/SkValue.cpp File src/core/SkValue.cpp (right): https://codereview.chromium.org/1585813004/diff/60001/src/core/SkValue.cpp#newcode26 src/core/SkValue.cpp:26: fObject->ref(); On 2016/01/15 13:38:56, Hal Canary wrote: > On ...
4 years, 11 months ago (2016-01-15 13:46:56 UTC) #12
mtklein
You're making this pointlessly complicated. Stop. https://codereview.chromium.org/1585813004/diff/60001/tests/ValueTest.cpp File tests/ValueTest.cpp (right): https://codereview.chromium.org/1585813004/diff/60001/tests/ValueTest.cpp#newcode73 tests/ValueTest.cpp:73: #define PRId32 "d" ...
4 years, 11 months ago (2016-01-15 14:16:09 UTC) #13
hal.canary
Okay! Everything is slightly simpler now. Tests are better too. (I test nested objects). On ...
4 years, 11 months ago (2016-01-15 16:10:05 UTC) #14
mtklein
> Ah, but I didn't have to write it; I just cut-and-pasted from another CL. ...
4 years, 11 months ago (2016-01-15 17:22:16 UTC) #15
mtklein
https://codereview.chromium.org/1585813004/diff/100001/src/core/SkValue.cpp File src/core/SkValue.cpp (right): https://codereview.chromium.org/1585813004/diff/100001/src/core/SkValue.cpp#newcode14 src/core/SkValue.cpp:14: // TODO(mtklein): replace with something less fragile later. Goodness ...
4 years, 11 months ago (2016-01-15 17:26:20 UTC) #16
hal.canary
On 2016/01/15 at 17:22:16, mtklein wrote: > That is incredibly, vastly worse. > > I'm ...
4 years, 11 months ago (2016-01-15 19:41:04 UTC) #17
hal.canary
https://codereview.chromium.org/1585813004/diff/100001/src/core/SkValue.cpp File src/core/SkValue.cpp (right): https://codereview.chromium.org/1585813004/diff/100001/src/core/SkValue.cpp#newcode14 src/core/SkValue.cpp:14: // TODO(mtklein): replace with something less fragile later. On ...
4 years, 11 months ago (2016-01-15 19:44:31 UTC) #18
mtklein
https://codereview.chromium.org/1585813004/diff/120001/src/core/SkValue.cpp File src/core/SkValue.cpp (right): https://codereview.chromium.org/1585813004/diff/120001/src/core/SkValue.cpp#newcode95 src/core/SkValue.cpp:95: return Bytes == fType ? fBytes : nullptr; Assert ...
4 years, 11 months ago (2016-01-15 20:42:20 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/180001
4 years, 11 months ago (2016-01-15 20:43:51 UTC) #21
mtklein
lgtm
4 years, 11 months ago (2016-01-15 20:45:51 UTC) #23
hal.canary
reed@: API
4 years, 11 months ago (2016-01-15 20:52:29 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-15 20:54:33 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/200001
4 years, 11 months ago (2016-01-21 15:46:04 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/5463)
4 years, 11 months ago (2016-01-21 15:48:25 UTC) #33
hal.canary
mtklein@, this CL has now been rebased on all of the other SkValue commits, and ...
4 years, 11 months ago (2016-01-21 15:48:35 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/220001
4 years, 11 months ago (2016-01-21 15:51:04 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/5465)
4 years, 11 months ago (2016-01-21 15:53:27 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/240001
4 years, 11 months ago (2016-01-21 16:08:07 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/5403) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on ...
4 years, 11 months ago (2016-01-21 16:09:04 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/260001
4 years, 11 months ago (2016-01-21 17:07:18 UTC) #44
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-21 17:24:56 UTC) #46
mtklein
https://codereview.chromium.org/1585813004/diff/240001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/1585813004/diff/240001/src/effects/SkArithmeticMode.cpp#newcode58 src/effects/SkArithmeticMode.cpp:58: SkValue asValue() const override { Boy that's super verbose. ...
4 years, 11 months ago (2016-01-21 17:46:19 UTC) #47
mtklein
Might want to spin off the include/ changes to Mike can LGTM them and we ...
4 years, 11 months ago (2016-01-21 18:25:39 UTC) #48
hal.canary
https://codereview.chromium.org/1585813004/diff/240001/src/effects/SkArithmeticMode.cpp File src/effects/SkArithmeticMode.cpp (right): https://codereview.chromium.org/1585813004/diff/240001/src/effects/SkArithmeticMode.cpp#newcode58 src/effects/SkArithmeticMode.cpp:58: SkValue asValue() const override { On 2016/01/21 at 17:46:18, ...
4 years, 11 months ago (2016-01-21 18:35:21 UTC) #49
reed1
private api lgtm
4 years, 11 months ago (2016-01-21 18:42:45 UTC) #50
mtklein
https://codereview.chromium.org/1585813004/diff/280001/src/core/SkValueKeys.h File src/core/SkValueKeys.h (right): https://codereview.chromium.org/1585813004/diff/280001/src/core/SkValueKeys.h#newcode11 src/core/SkValueKeys.h:11: #include "SkValue.h" Not really needed? https://codereview.chromium.org/1585813004/diff/280001/src/core/SkValueKeys.h#newcode14 src/core/SkValueKeys.h:14: namespace ArithmeticXfermode ...
4 years, 11 months ago (2016-01-21 19:01:23 UTC) #51
mtklein
https://codereview.chromium.org/1585813004/diff/280001/src/effects/SkToFromValue.cpp File src/effects/SkToFromValue.cpp (right): https://codereview.chromium.org/1585813004/diff/280001/src/effects/SkToFromValue.cpp#newcode87 src/effects/SkToFromValue.cpp:87: int32_t enforce = true; One of my goals in ...
4 years, 11 months ago (2016-01-21 19:15:31 UTC) #52
hal.canary
https://codereview.chromium.org/1585813004/diff/280001/src/core/SkValueKeys.h File src/core/SkValueKeys.h (right): https://codereview.chromium.org/1585813004/diff/280001/src/core/SkValueKeys.h#newcode11 src/core/SkValueKeys.h:11: #include "SkValue.h" On 2016/01/21 at 19:01:23, mtklein wrote: > ...
4 years, 11 months ago (2016-01-21 19:33:40 UTC) #53
mtklein
https://codereview.chromium.org/1585813004/diff/280001/src/effects/SkToFromValue.cpp File src/effects/SkToFromValue.cpp (right): https://codereview.chromium.org/1585813004/diff/280001/src/effects/SkToFromValue.cpp#newcode20 src/effects/SkToFromValue.cpp:20: #define OPTIONAL_KEY(VAL, KEY, PTR) \ On 2016/01/21 19:33:40, Hal ...
4 years, 11 months ago (2016-01-21 20:01:33 UTC) #54
hal.canary
On 2016/01/21 at 20:01:33, mtklein wrote: > https://codereview.chromium.org/1585813004/diff/280001/src/effects/SkToFromValue.cpp > File src/effects/SkToFromValue.cpp (right): > > https://codereview.chromium.org/1585813004/diff/280001/src/effects/SkToFromValue.cpp#newcode20 ...
4 years, 11 months ago (2016-01-21 20:22:23 UTC) #55
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/340001
4 years, 11 months ago (2016-01-21 20:24:18 UTC) #57
mtklein
lgtm, with some small nits https://codereview.chromium.org/1585813004/diff/320001/src/effects/SkToFromValue.cpp File src/effects/SkToFromValue.cpp (right): https://codereview.chromium.org/1585813004/diff/320001/src/effects/SkToFromValue.cpp#newcode56 src/effects/SkToFromValue.cpp:56: template<> bool SkFromValue<SkMatrix>(const SkValue& ...
4 years, 11 months ago (2016-01-21 20:25:11 UTC) #58
hal.canary
https://codereview.chromium.org/1585813004/diff/320001/src/effects/SkToFromValue.cpp File src/effects/SkToFromValue.cpp (right): https://codereview.chromium.org/1585813004/diff/320001/src/effects/SkToFromValue.cpp#newcode56 src/effects/SkToFromValue.cpp:56: template<> bool SkFromValue<SkMatrix>(const SkValue& val, SkMatrix* m){ On 2016/01/21 ...
4 years, 11 months ago (2016-01-21 20:26:40 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/360001
4 years, 11 months ago (2016-01-21 20:27:07 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/360001
4 years, 11 months ago (2016-01-21 22:06:42 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/360001
4 years, 11 months ago (2016-01-21 22:09:32 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/360001
4 years, 11 months ago (2016-01-21 22:13:11 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585813004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585813004/360001
4 years, 11 months ago (2016-01-21 22:14:14 UTC) #78
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 22:15:14 UTC) #80
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://skia.googlesource.com/skia/+/27a6e86fb17fce7ce962b9080eae36926e87d568

Powered by Google App Engine
This is Rietveld 408576698