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

Issue 1634273002: float components in xfermodes (Closed)

Created:
4 years, 11 months ago by reed1
Modified:
4 years, 10 months ago
Reviewers:
herb_g, mtklein
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 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : fix bench #

Patch Set 9 : delete more abandoned helpers #

Patch Set 10 : disable blitter for official checkin #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+680 lines, -279 lines) Patch
M bench/Xfer4fBench.cpp View 1 2 3 4 5 6 7 3 chunks +34 lines, -26 lines 0 comments Download
A gm/color4f.cpp View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
M gm/xfer4f.cpp View 1 2 3 4 5 2 chunks +10 lines, -8 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M include/core/SkColor.h View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M include/core/SkXfermode.h View 1 2 3 4 5 1 chunk +17 lines, -0 lines 2 comments Download
M src/core/SkBlitter.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -2 lines 0 comments Download
A src/core/SkBlitter_PM4f.cpp View 1 2 3 4 5 1 chunk +159 lines, -0 lines 0 comments Download
M src/core/SkColor.cpp View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M src/core/SkCoreBlitters.h View 1 2 3 4 2 chunks +27 lines, -3 lines 2 comments Download
M src/core/SkPM4fPriv.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -72 lines 0 comments Download
D src/core/SkXfer4f.h View 1 2 3 4 5 1 chunk +0 lines, -24 lines 0 comments Download
D src/core/SkXfer4f.cpp View 1 2 3 4 5 1 chunk +0 lines, -134 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
A src/core/SkXfermode4f.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +327 lines, -0 lines 6 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (11 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/1634273002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634273002/80001
4 years, 10 months ago (2016-01-29 21:32:47 UTC) #2
reed1
more work to do on gm, but this is the bulk of the intended CL
4 years, 10 months ago (2016-01-29 21:35:04 UTC) #4
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/5687)
4 years, 10 months ago (2016-01-29 21:35:24 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634273002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634273002/120001
4 years, 10 months ago (2016-01-30 00:13:22 UTC) #8
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/5690) Build-Ubuntu-Clang-x86_64-Debug-Trybot on ...
4 years, 10 months ago (2016-01-30 00:14:43 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634273002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634273002/140001
4 years, 10 months ago (2016-01-30 00:25:41 UTC) #12
reed1
ptal -- won't land until I disable invoking the blitter, since that kicks in when ...
4 years, 10 months ago (2016-01-30 00:29:49 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634273002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634273002/180001
4 years, 10 months ago (2016-01-30 00:49:15 UTC) #15
reed1
blitter disabled (w/ a private flag for dev testing) PTAL
4 years, 10 months ago (2016-01-30 00:57:50 UTC) #16
mtklein
I am okay to continue with post-facto review if you want to keep your creative ...
4 years, 10 months ago (2016-01-30 01:19:02 UTC) #18
reed1
thanks mike. I concede that there must be more compact ways to expand the various ...
4 years, 10 months ago (2016-01-30 02:00:45 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634273002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634273002/180001
4 years, 10 months ago (2016-01-31 02:40:13 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://skia.googlesource.com/skia/+/395eabeb0e72334c45324874c6e009b54634df21
4 years, 10 months ago (2016-01-31 02:52:36 UTC) #24
mtklein
not quite through everything, but done for the day https://codereview.chromium.org/1634273002/diff/180001/include/core/SkXfermode.h File include/core/SkXfermode.h (right): https://codereview.chromium.org/1634273002/diff/180001/include/core/SkXfermode.h#newcode232 include/core/SkXfermode.h:232: ...
4 years, 10 months ago (2016-02-01 22:53:52 UTC) #25
reed1
https://codereview.chromium.org/1634273002/diff/180001/include/core/SkXfermode.h File include/core/SkXfermode.h (right): https://codereview.chromium.org/1634273002/diff/180001/include/core/SkXfermode.h#newcode232 include/core/SkXfermode.h:232: enum PM4fFlags { On 2016/02/01 22:53:52, mtklein wrote: > ...
4 years, 10 months ago (2016-02-02 14:20:54 UTC) #26
mtklein
https://codereview.chromium.org/1634273002/diff/180001/src/core/SkXfermode4f.cpp File src/core/SkXfermode4f.cpp (right): https://codereview.chromium.org/1634273002/diff/180001/src/core/SkXfermode4f.cpp#newcode40 src/core/SkXfermode4f.cpp:40: static Sk4f scale_255_round(const SkPM4f& pm4) { On 2016/02/02 14:20:54, ...
4 years, 10 months ago (2016-02-02 14:24:11 UTC) #27
reed1
4 years, 10 months ago (2016-02-02 14:40:05 UTC) #28
Message was sent while issue was closed.
On 2016/02/02 14:24:11, mtklein wrote:
>
https://codereview.chromium.org/1634273002/diff/180001/src/core/SkXfermode4f.cpp
> File src/core/SkXfermode4f.cpp (right):
> 
>
https://codereview.chromium.org/1634273002/diff/180001/src/core/SkXfermode4f....
> src/core/SkXfermode4f.cpp:40: static Sk4f scale_255_round(const SkPM4f& pm4) {
> On 2016/02/02 14:20:54, reed1 wrote:
> > On 2016/02/01 22:53:52, mtklein wrote:
> > > Generally I like to scope one-shot helpers like this as lambdas now, here
> > > nestled into pm4f_to_linear_32.  Seeing it here makes me think i'll find
it
> > used
> > > more later on down the file.
> > 
> > We can change. I find some value in naming these at times, as that documents
> the
> > (intent of) the transformation, something that is lost in a lambda. Perhaps
> the
> > need (or lack thereof) for micro documentation will change as we get more
> mature
> > in how we organize this new workflow.
> 
> Lambdas can have names too...
> 
> auto scale_255_round = [](const SkPM4f& pm4) {
>     return Sk4f::Load(pm4.fVec) * Sk4f(255) + Sk4f(0.5f);
> };
> 
> Just suggesting to scope this tighter while it's only used in that tight
scope.

Ah, that makes good sense.

Powered by Google App Engine
This is Rietveld 408576698