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

Issue 2715453002: Add UMAs for numerical approximation of table-based transfer functions. (Closed)

Created:
3 years, 10 months ago by ccameron
Modified:
3 years, 10 months ago
Reviewers:
msarett1, Ilya Sherman, pdr.
CC:
ajuma+watch_chromium.org, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMAs for numerical approximation of table-based transfer functions. Track the following values. The range of the table-based transfer functions. If almost all cover the full range from 0 to 1, then we can bake this assumption into the numerical approxmation. This is a temporary histogram that will be removed once we gather enough data to make an informed decision. Whether or not the nonlinear numerical approximation converged (or if we had to fall back to a linear approximation). The accuracy of the final numerical approximation. Note that none of the numerical code in this patch is used by anything execept histograms (yet). BUG=667966 Review-Url: https://codereview.chromium.org/2715453002 Cr-Commit-Position: refs/heads/master@{#452701} Committed: https://chromium.googlesource.com/chromium/src/+/41d5c6041911282c00f3946aa3e4759ba602434b

Patch Set 1 #

Patch Set 2 : Fix error computation #

Total comments: 17

Patch Set 3 : Review feedback #

Patch Set 4 : Oops, fix compile #

Total comments: 19

Patch Set 5 : Review feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -2 lines) Patch
M third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp View 1 2 3 4 2 chunks +62 lines, -0 lines 2 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 4 chunks +66 lines, -2 lines 0 comments Download
M ui/gfx/color_space_unittest.cc View 1 2 3 2 chunks +50 lines, -0 lines 0 comments Download
M ui/gfx/skia_color_space_util.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M ui/gfx/skia_color_space_util.cc View 1 2 3 4 2 chunks +339 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
ccameron
ptal: msarett@: for the numerics. there are lots of unit tests which show that this ...
3 years, 10 months ago (2017-02-22 09:45:14 UTC) #2
ccameron
https://codereview.chromium.org/2715453002/diff/20001/ui/gfx/skia_color_space_util.cc File ui/gfx/skia_color_space_util.cc (right): https://codereview.chromium.org/2715453002/diff/20001/ui/gfx/skia_color_space_util.cc#newcode169 ui/gfx/skia_color_space_util.cc:169: If we find that we can assume that TrFn(1)=1, ...
3 years, 10 months ago (2017-02-22 10:21:30 UTC) #3
msarett1
Cool! Thanks for the fun review! Only nits and questions. https://codereview.chromium.org/2715453002/diff/20001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp File third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp (right): https://codereview.chromium.org/2715453002/diff/20001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp#newcode67 ...
3 years, 10 months ago (2017-02-22 19:53:18 UTC) #4
ccameron
Thanks! We'll still need fallback for pure-A2B profiles, but it'll be less accurate or more ...
3 years, 10 months ago (2017-02-22 22:10:48 UTC) #7
msarett1
lgtm
3 years, 10 months ago (2017-02-22 22:15:29 UTC) #8
Ilya Sherman
https://codereview.chromium.org/2715453002/diff/60001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp File third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp (right): https://codereview.chromium.org/2715453002/diff/60001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp#newcode65 third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp:65: 1023, 32); Just to double-check: Are you taking into ...
3 years, 10 months ago (2017-02-22 22:48:49 UTC) #13
ccameron
Thanks -- updated https://codereview.chromium.org/2715453002/diff/60001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp File third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp (right): https://codereview.chromium.org/2715453002/diff/60001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp#newcode65 third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp:65: 1023, 32); On 2017/02/22 22:48:48, Ilya ...
3 years, 10 months ago (2017-02-23 00:47:33 UTC) #17
Ilya Sherman
Metrics LGTM, thanks.
3 years, 10 months ago (2017-02-23 08:10:54 UTC) #18
pdr.
LGTM https://codereview.chromium.org/2715453002/diff/100001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp File third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp (right): https://codereview.chromium.org/2715453002/diff/100001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp#newcode100 third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp:100: if (nonlinearFitConverged) { These counters are in what ...
3 years, 10 months ago (2017-02-23 21:24:57 UTC) #20
ccameron
Thanks! https://codereview.chromium.org/2715453002/diff/100001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp File third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp (right): https://codereview.chromium.org/2715453002/diff/100001/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp#newcode100 third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp:100: if (nonlinearFitConverged) { On 2017/02/23 21:24:57, pdr. wrote: ...
3 years, 10 months ago (2017-02-23 23:18:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2715453002/100001
3 years, 10 months ago (2017-02-23 23:20:09 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 01:05:37 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/41d5c6041911282c00f3946aa3e4...

Powered by Google App Engine
This is Rietveld 408576698