From e967b2de9ea805ef40840280eae686040b8a5c94 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Mon, 28 Sep 2009 17:59:29 +0000 Subject: Comment out the condition (b == vmax), since it will always be true at this point in the code. BUG=none TEST=none Review URL: http://codereview.chromium.org/243004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27374 0039d316-1c4b-4281-b951-d872f2087c98 --- app/gfx/color_utils.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/gfx/color_utils.cc b/app/gfx/color_utils.cc index cf8cbd2..483e857 100644 --- a/app/gfx/color_utils.cc +++ b/app/gfx/color_utils.cc @@ -9,6 +9,8 @@ #include #endif +#include + #include "base/basictypes.h" #include "base/logging.h" #include "build/build_config.h" @@ -97,7 +99,7 @@ void SkColorToHSL(SkColor c, HSL* hsl) { hsl->h = db - dg; else if (g == vmax) hsl->h = (1.0 / 3.0) + dr - db; - else if (b == vmax) + else // (b == vmax) hsl->h = (2.0 / 3.0) + dg - dr; if (hsl->h < 0.0) -- cgit v1.1