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

Issue 1201343004: Convert SkPMFloat to [0,1] range and prune its API. (Closed)

Created:
5 years, 6 months ago by mtklein_C
Modified:
5 years, 6 months ago
Reviewers:
f(malita), 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

Convert SkPMFloat to [0,1] range and prune its API. Now that Sk4px exists, there's a lot less sense in eeking out every cycle of speed from SkPMFloat: if we need to go _really_ fast, we should use Sk4px. SkPMFloat's going to be used for things that are already slow: large-range intermediates, divides, sqrts, etc. A [0,1] range is easier to work with, and can even be faster if we eliminate enough *255 and *1/255 steps. This is particularly true on ARM, where NEON can do the *255 and /255 steps for us while converting float<->int. We have lots of experimental SkPMFloat <-> SkPMColor APIs that I'm now removing. Of the existing APIs, roundClamp() is the sanest, so I've kept only that, now called round(). The 4-at-a-time APIs never panned out, so they're gone. There will be small diffs on: colormatrix coloremoji colorfilterimagefilter fadefilter imagefilters_xfermodes imagefilterscropexpand imagefiltersgraph tileimagefilter BUG=skia: Committed: https://skia.googlesource.com/skia/+/e9a3e3c17a313942042d6cfb9f4f0361a900d9e7

Patch Set 1 #

Patch Set 2 : fix translate vector #

Patch Set 3 : consistent name #

Patch Set 4 : tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -417 lines) Patch
M bench/PMFloatBench.cpp View 1 2 4 chunks +18 lines, -66 lines 0 comments Download
M src/core/SkPMFloat.h View 3 chunks +5 lines, -24 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 4 chunks +11 lines, -25 lines 0 comments Download
D src/opts/SkPMFloat_SSE2.h View 1 chunk +0 lines, -84 lines 0 comments Download
D src/opts/SkPMFloat_SSSE3.h View 1 chunk +0 lines, -87 lines 0 comments Download
M src/opts/SkPMFloat_neon.h View 1 2 3 1 chunk +6 lines, -52 lines 0 comments Download
M src/opts/SkPMFloat_none.h View 1 chunk +10 lines, -45 lines 0 comments Download
A src/opts/SkPMFloat_sse.h View 1 chunk +36 lines, -0 lines 0 comments Download
M tests/PMFloatTest.cpp View 1 chunk +14 lines, -34 lines 0 comments Download

Messages

Total messages: 19 (8 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/1201343004/1
5 years, 6 months ago (2015-06-24 21:10:43 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/1535)
5 years, 6 months ago (2015-06-24 21:14:46 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201343004/20001
5 years, 6 months ago (2015-06-25 15:03:15 UTC) #6
mtklein_C
5 years, 6 months ago (2015-06-25 15:32:38 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201343004/60001
5 years, 6 months ago (2015-06-25 15:32:58 UTC) #10
mtklein_C
5 years, 6 months ago (2015-06-25 15:34:55 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-25 15:38:29 UTC) #14
reed1
will this need to be guarded for chrome/blink? lgtm
5 years, 6 months ago (2015-06-25 15:53:08 UTC) #15
mtklein
On 2015/06/25 15:53:08, reed1 wrote: > will this need to be guarded for chrome/blink? > ...
5 years, 6 months ago (2015-06-25 15:55:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201343004/60001
5 years, 6 months ago (2015-06-25 15:55:50 UTC) #18
commit-bot: I haz the power
5 years, 6 months ago (2015-06-25 15:56:30 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/e9a3e3c17a313942042d6cfb9f4f0361a900d9e7

Powered by Google App Engine
This is Rietveld 408576698