aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp_skia
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-06-07 12:12:37 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-07 12:12:37 -0700
commit3db2028126e12a9c1c1fb2f878d552a2de0e1452 (patch)
treed851792e0ad76e61d51c42e03e429b14d2f21044 /gyp_skia
parent12dfaaa53c23f3d03050bde8f64136ac1f44164a (diff)
linear -> sRGB: use fast approximate sqrt()
Since we're already approximating the sRGB gamma curve with a sqrt(), we might as well approximate with it a faster approximate sqrt(). On Intel, this .rsqrt().invert() version is 2-3x faster than .sqrt() (~3x faster on older machines, ~2x faster on newer machines). This should provide ~11 bits of precision, suspiciously exactly enough. Running dm --config srgb, there are diffs, but none perceptible. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2046063002 Review-Url: https://codereview.chromium.org/2046063002
Diffstat (limited to 'gyp_skia')
0 files changed, 0 insertions, 0 deletions