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

Issue 973603002: Make SkPMFloats store floats in [0,255] instead of [0,1]. (Closed)

Created:
5 years, 9 months ago by mtklein_C
Modified:
5 years, 9 months ago
Reviewers:
msarett, mtklein, rmistry, reed1
CC:
reviews_skia.org, msarett
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Make SkPMFloats store floats in [0,255] instead of [0,1]. This pushes the cost of the *255 and *1/255 conversions onto only those code paths that need it. We're not doing it any more efficiently than can be done with Sk4f. In microbenchmark isolation, this is about a 15% speedup. BUG=skia: NOPRESUBMIT=true Committed: https://skia.googlesource.com/skia/+/60d2a32b2dbbaabf4a0c133c8d3ff5ad888b8e5e

Patch Set 1 #

Patch Set 2 : restore comment #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -49 lines) Patch
M src/core/SkPMFloat.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/opts/SkPMFloat_SSE2.h View 3 chunks +5 lines, -8 lines 4 comments Download
M src/opts/SkPMFloat_neon.h View 3 chunks +6 lines, -10 lines 0 comments Download
M src/opts/SkPMFloat_none.h View 2 chunks +10 lines, -11 lines 0 comments Download
M tests/PMFloatTest.cpp View 1 chunk +17 lines, -17 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
mtklein_C
5 years, 9 months ago (2015-03-02 22:49:17 UTC) #2
mtklein
Oops, typo... CC'ing the real msarett...
5 years, 9 months ago (2015-03-03 02:06:52 UTC) #4
msarett
I added a few comments with a few ideas. Also, I'm not sure if you ...
5 years, 9 months ago (2015-03-03 14:34:28 UTC) #6
mtklein
https://codereview.chromium.org/973603002/diff/20001/src/opts/SkPMFloat_SSE2.h File src/opts/SkPMFloat_SSE2.h (right): https://codereview.chromium.org/973603002/diff/20001/src/opts/SkPMFloat_SSE2.h#newcode16 src/opts/SkPMFloat_SSE2.h:16: _mm_store_ps(fColor, _mm_cvtepi32_ps(fix8_32)); On 2015/03/03 14:34:28, msarett wrote: > I ...
5 years, 9 months ago (2015-03-03 15:02:17 UTC) #7
msarett
lgtm Wow, had no idea that some of those intrinsics compile to multiple instructions. That ...
5 years, 9 months ago (2015-03-03 15:12:12 UTC) #8
reed1
api/feature lgtm
5 years, 9 months ago (2015-03-03 15:22:38 UTC) #9
mtklein
On 2015/03/03 15:12:12, msarett wrote: > lgtm > > Wow, had no idea that some ...
5 years, 9 months ago (2015-03-03 15:23:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973603002/20001
5 years, 9 months ago (2015-03-03 15:24:03 UTC) #12
commit-bot: I haz the power
Presubmit check for 973603002-20001 failed and returned exit status 1. Traceback (most recent call last): ...
5 years, 9 months ago (2015-03-03 15:24:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973603002/20001
5 years, 9 months ago (2015-03-03 15:40:03 UTC) #16
commit-bot: I haz the power
Presubmit check for 973603002-20001 failed and returned exit status 1. Traceback (most recent call last): ...
5 years, 9 months ago (2015-03-03 15:40:06 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973603002/20001
5 years, 9 months ago (2015-03-03 15:40:34 UTC) #20
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 15:46:20 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/60d2a32b2dbbaabf4a0c133c8d3ff5ad888b8e5e

Powered by Google App Engine
This is Rietveld 408576698