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

Issue 1242403005: C API: add sk_xfermode.h, impl, test (Closed)

Created:
5 years, 5 months ago by hal.canary
Modified:
5 years, 4 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 #

Patch Set 2 : hide SkXfermode #

Total comments: 2

Patch Set 3 : default: do nothing #

Patch Set 4 : 2015-07-31 (Friday) 13:55:37 EDT #

Total comments: 1

Patch Set 5 : consistant behaviour #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -1 line) Patch
M include/c/sk_paint.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M include/c/sk_types.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
M src/c/sk_paint.cpp View 1 2 3 4 1 chunk +40 lines, -1 line 0 comments Download
M tests/CTest.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242403005/1
5 years, 5 months ago (2015-07-22 15:43:35 UTC) #2
hal.canary
please take a look
5 years, 5 months ago (2015-07-22 15:48:01 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-22 16:03:18 UTC) #6
hal.canary
On second thought, let's not expose SkXfermode. We'll only expose SkXfermode::Mode for now.
5 years, 4 months ago (2015-07-28 21:17:56 UTC) #7
reed1
mulling over this. wondering if we want to just have enum-in, enum-out on the c-paint, ...
5 years, 4 months ago (2015-07-29 18:43:42 UTC) #10
hal.canary
On 2015/07/29 18:43:42, reed1 wrote: > mulling over this. wondering if we want to just ...
5 years, 4 months ago (2015-07-29 19:47:38 UTC) #11
hal.canary
One more try.
5 years, 4 months ago (2015-07-30 21:27:05 UTC) #12
reed1
How about this as a defensive approach: 1. don't introduce UNKNOWN as a mode 2. ...
5 years, 4 months ago (2015-07-31 15:29:27 UTC) #13
hal.canary
On 2015/07/31 15:29:27, reed1 wrote: > How about this as a defensive approach: > > ...
5 years, 4 months ago (2015-07-31 15:31:46 UTC) #14
reed1
doh! -- yes
5 years, 4 months ago (2015-07-31 15:32:45 UTC) #15
reed1
https://codereview.chromium.org/1242403005/diff/40001/src/c/sk_paint.cpp File src/c/sk_paint.cpp (right): https://codereview.chromium.org/1242403005/diff/40001/src/c/sk_paint.cpp#newcode166 src/c/sk_paint.cpp:166: default: return SkXfermode::kSrcOver_Mode; Why do we have default?
5 years, 4 months ago (2015-07-31 15:33:42 UTC) #16
hal.canary
https://codereview.chromium.org/1242403005/diff/40001/src/c/sk_paint.cpp File src/c/sk_paint.cpp (right): https://codereview.chromium.org/1242403005/diff/40001/src/c/sk_paint.cpp#newcode166 src/c/sk_paint.cpp:166: default: return SkXfermode::kSrcOver_Mode; On 2015/07/31 15:33:42, reed1 wrote: > ...
5 years, 4 months ago (2015-07-31 15:41:59 UTC) #17
reed1
I think we should: - crash - ignore it completely - be undefined I don't ...
5 years, 4 months ago (2015-07-31 15:47:19 UTC) #19
hal.canary
On 2015/07/31 15:47:19, reed1 wrote: > I think we should: > > - crash > ...
5 years, 4 months ago (2015-07-31 17:33:53 UTC) #20
hal.canary
as discussed
5 years, 4 months ago (2015-07-31 17:56:04 UTC) #21
hal.canary
On 2015/07/31 17:56:04, Hal Canary wrote: > as discussed once more
5 years, 4 months ago (2015-07-31 18:11:56 UTC) #22
reed1
lgtm https://codereview.chromium.org/1242403005/diff/100001/src/c/sk_paint.cpp File src/c/sk_paint.cpp (right): https://codereview.chromium.org/1242403005/diff/100001/src/c/sk_paint.cpp#newcode136 src/c/sk_paint.cpp:136: SkASSERT(paint); don't need this, as the setXfermode will ...
5 years, 4 months ago (2015-07-31 18:15:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242403005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1242403005/120001
5 years, 4 months ago (2015-07-31 19:58:35 UTC) #25
commit-bot: I haz the power
5 years, 4 months ago (2015-07-31 20:38:10 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://skia.googlesource.com/skia/+/7568d0b15e9d66387533d397b5aaba60491e1624

Powered by Google App Engine
This is Rietveld 408576698