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

Issue 24078006: In order to use CSS luminance masking, we need to be able to create an instance of SkLumaXfermode w… (Closed)

Created:
7 years, 3 months ago by Andrei Parvu
Modified:
7 years, 3 months ago
CC:
skia-review_googlegroups.com, krit
Visibility:
Public.

Description

In order to use CSS luminance masking, we need to be able to create an instance of SkLumaXfermode which can receive a kSrcOver mode, and applies that mode after converting the source using the luminance-to-alpha coefficients. BUG: 289420

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -12 lines) Patch
M bench/XfermodeBench.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M gm/lumamode.cpp View 1 4 chunks +4 lines, -2 lines 0 comments Download
M include/effects/SkLumaXfermode.h View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M src/effects/SkLumaXfermode.cpp View 1 2 3 4 5 7 chunks +45 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Andrei Parvu
I've created a patch which adds the possibility of creating an instance of SkLumaMaskXfermode with ...
7 years, 3 months ago (2013-09-11 12:31:22 UTC) #1
bsalomon
Adding Florin
7 years, 3 months ago (2013-09-11 14:18:47 UTC) #2
reed1
I expect we should create a different hidden subclass at Create time, so we don't ...
7 years, 3 months ago (2013-09-11 14:30:44 UTC) #3
fmalita_google_do_not_use
Andrei, do you have a (work in progress) Blink patch implementing CSS luminance masking that ...
7 years, 3 months ago (2013-09-11 14:34:01 UTC) #4
Andrei Parvu
On 2013/09/11 14:34:01, fmalita wrote: > Andrei, do you have a (work in progress) Blink ...
7 years, 3 months ago (2013-09-11 14:47:17 UTC) #5
f(malita)
Ah, makes sense. Chatting with Mike, it seems a Skia color filter might be a ...
7 years, 3 months ago (2013-09-11 16:53:19 UTC) #6
Andrei Parvu
I've added a new subclass for the srcover mode, and corrected the actual luminance conversion ...
7 years, 3 months ago (2013-09-12 22:02:11 UTC) #7
reed1
I suggest we remove all overrides etc. from this header, and *just* expose the factory. ...
7 years, 3 months ago (2013-09-13 12:44:48 UTC) #8
Andrei Parvu
Moved the srcOver class to the implementation file and updated the dox.
7 years, 3 months ago (2013-09-13 14:01:59 UTC) #9
reed1
api lgtm https://codereview.chromium.org/24078006/diff/17001/src/effects/SkLumaXfermode.cpp File src/effects/SkLumaXfermode.cpp (right): https://codereview.chromium.org/24078006/diff/17001/src/effects/SkLumaXfermode.cpp#newcode77 src/effects/SkLumaXfermode.cpp:77: return lumaProc(*a, *b); nit: if this is ...
7 years, 3 months ago (2013-09-13 15:22:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/andrei.prv@gmail.com/24078006/25001
7 years, 3 months ago (2013-09-13 18:21:30 UTC) #11
commit-bot: I haz the power
Retried try job too often on Build-Ubuntu12-GCC-x86_64-Release-Trybot for step(s) BuildBench, BuildEverything, BuildGm, BuildSkiaLib, BuildTests, BuildTools ...
7 years, 3 months ago (2013-09-13 18:26:21 UTC) #12
Andrei Parvu
On 2013/09/13 18:26:21, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 3 months ago (2013-09-14 06:02:04 UTC) #13
f(malita)
On 2013/09/14 06:02:04, Andrei Parvu wrote: > On 2013/09/13 18:26:21, I haz the power (commit-bot) ...
7 years, 3 months ago (2013-09-16 13:09:18 UTC) #14
Andrei Parvu
On 2013/09/16 13:09:18, Florin Malita wrote: > On 2013/09/14 06:02:04, Andrei Parvu wrote: > > ...
7 years, 3 months ago (2013-09-16 13:22:22 UTC) #15
f(malita)
On 2013/09/16 13:22:22, Andrei Parvu wrote: > I don't have commit rights to Skia, so ...
7 years, 3 months ago (2013-09-16 13:32:34 UTC) #16
Andrei Parvu
On 2013/09/16 13:32:34, Florin Malita wrote: > On 2013/09/16 13:22:22, Andrei Parvu wrote: > > ...
7 years, 3 months ago (2013-09-16 13:41:25 UTC) #17
bsalomon
sorry for the late review. I just looked at the GPU code and lgtm with ...
7 years, 3 months ago (2013-09-16 13:41:27 UTC) #18
f(malita)
On 2013/09/16 13:41:25, Andrei Parvu wrote: > On 2013/09/16 13:32:34, Florin Malita wrote: > > ...
7 years, 3 months ago (2013-09-16 13:44:40 UTC) #19
Andrei Parvu
On 2013/09/16 13:41:27, bsalomon wrote: > sorry for the late review. I just looked at ...
7 years, 3 months ago (2013-09-16 13:58:01 UTC) #20
f(malita)
7 years, 3 months ago (2013-09-16 15:20:23 UTC) #21
Patch imported: https://codereview.chromium.org/23710053/

I've also added SkLumaMaskXfermodeSrcOver deserialization procs to support
picture playback for the new mode.

Powered by Google App Engine
This is Rietveld 408576698