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

Issue 215049: Reorder the color_utils functions in preparation for adding more:... (Closed)

Created:
11 years, 3 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Reorder the color_utils functions in preparation for adding more: * Put helper functions in a block at the top of the file (which we can then use an anonymous namespace around) * Make main function order a little more consistent BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26827

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -110 lines) Patch
M app/gfx/color_utils.h View 2 chunks +4 lines, -4 lines 0 comments Download
M app/gfx/color_utils.cc View 9 chunks +115 lines, -106 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Peter Kasting
11 years, 3 months ago (2009-09-22 00:34:39 UTC) #1
brettw
LGTM http://codereview.chromium.org/215049/diff/1/2 File app/gfx/color_utils.cc (right): http://codereview.chromium.org/215049/diff/1/2#newcode28 Line 28: // http://en.wikipedia.org/wiki/SRGB_color_space# I would have kept this ...
11 years, 3 months ago (2009-09-22 16:40:51 UTC) #2
Peter Kasting
11 years, 3 months ago (2009-09-22 17:14:07 UTC) #3
On 2009/09/22 16:40:51, brettw wrote:
> http://codereview.chromium.org/215049/diff/1/2#newcode28
> Line 28: // http://en.wikipedia.org/wiki/SRGB_color_space#
> I would have kept this link as-is, since now nobody can copy/paste it or click
> it (in VS). There is an explicit exception in the style guide for longer URLs.

Oh, good to know.  I prefer it the unbroken way so I'm happy to change it back
:)

> http://codereview.chromium.org/215049/diff/1/2#newcode152
> Line 152: xyz->X =
> Can you indent the wrapped lines 2 more spaces while you're here? I would have
> probably wrapped this as:
> xyz->X = 0.4124 * CIEConvertNonLinear(r) +
>          0.3576 * CIEConvertNonLinear(g) +
>          0.1805 * CIEConvertNonLinear(g);
> but that's up to you.

You are anticipating my next CL which tried to clean up the functions more -- I
rewrapped in precisely this way there.  I'll go ahead and make this particular
change in this CL and commit.

Powered by Google App Engine
This is Rietveld 408576698