/external/chromium_org/ui/gfx/ |
H A D | color_utils_unittest.cc | 15 HSL hsl = {0, 0, 0}; local 16 SkColorToHSL(SK_ColorRED, &hsl); 17 EXPECT_DOUBLE_EQ(hsl.h, 0); 18 EXPECT_DOUBLE_EQ(hsl.s, 1); 19 EXPECT_DOUBLE_EQ(hsl.l, 0.5); 23 HSL hsl = {0, 0, 0}; local 24 SkColorToHSL(SkColorSetARGB(255, 128, 128, 128), &hsl); 25 EXPECT_DOUBLE_EQ(hsl.h, 0); 26 EXPECT_DOUBLE_EQ(hsl.s, 0); 27 EXPECT_EQ(static_cast<int>(hsl 33 HSL hsl = {0, 1, 0.5}; local 47 HSL hsl = {0, 0, 0}; local 60 HSL hsl = {0, 0, 0}; local 72 HSL hsl = {0.3, 0.4, 0.5}; local 92 HSL hsl = {0.3, 0.4, 0.5}; local 107 HSL hsl = {-1, -1, -1}; local [all...] |
H A D | color_utils.cc | 58 HSL hsl; local 59 SkColorToHSL(color, &hsl); 60 hsl.l = 1.0 - hsl.l; 61 return HSLToSkColor(hsl, 255); 92 void SkColorToHSL(SkColor c, HSL* hsl) { argument 99 hsl->l = (vmax + vmin) / 2; 101 hsl->h = hsl->s = 0; 109 hsl 124 HSLToSkColor(const HSL& hsl, SkAlpha alpha) argument 154 IsWithinHSLRange(const HSL& hsl, const HSL& lower_bound, const HSL& upper_bound) argument 185 HSL hsl; local [all...] |
H A D | skbitmap_operations_unittest.cc | 224 color_utils::HSL hsl = { -1, -1, -1 }; local 225 SkBitmap shifted = ReferenceCreateHSLShiftedBitmap(src, hsl); 261 color_utils::HSL hsl = { 0, -1, -1 }; local 263 SkBitmap shifted = SkBitmapOperations::CreateHSLShiftedBitmap(src, hsl); 301 color_utils::HSL hsl = { h, s, l }; local 302 SkBitmap ref_shifted = ReferenceCreateHSLShiftedBitmap(src, hsl); 303 SkBitmap shifted = SkBitmapOperations::CreateHSLShiftedBitmap(src, hsl);
|
H A D | color_analysis.cc | 342 HSL hsl; local 343 SkColorToHSL(current_color, &hsl); 344 if (IsWithinHSLRange(hsl, lower_bound, upper_bound)) {
|
/external/chromium_org/chrome/browser/themes/ |
H A D | theme_service.cc | 423 color_utils::HSL hsl; local 424 if (theme_supplier_.get() && theme_supplier_->GetTint(id, &hsl)) 425 return hsl;
|
H A D | browser_theme_pack.cc | 834 bool BrowserThemePack::GetTint(int id, color_utils::HSL* hsl) const { 838 hsl->h = tints_[i].h; 839 hsl->s = tints_[i].s; 840 hsl->l = tints_[i].l; 995 color_utils::HSL hsl = { -1, -1, -1 }; local 997 if (tint_list->GetDouble(0, &hsl.h) && 998 tint_list->GetDouble(1, &hsl.s) && 999 tint_list->GetDouble(2, &hsl.l)) { 1002 temp_tints[id] = hsl; 1526 color_utils::HSL hsl; local [all...] |
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
H A D | gtk2_ui.cc | 1014 color_utils::HSL hsl; local 1015 color_utils::SkColorToHSL(GdkColorToSkColor(*color), &hsl); 1018 hsl.s = default_tint.s; 1021 hsl.l = default_tint.l; 1023 tints_[id] = hsl;
|
/external/chromium_org/ui/native_theme/ |
H A D | native_theme_base.cc | 74 SkColor BrightenColor(const color_utils::HSL& hsl, SkAlpha alpha, argument 76 color_utils::HSL adjusted = hsl;
|
/external/chromium_org/third_party/d3/src/ |
H A D | d3.js | 1473 d3.hsl = function(h, s, l) { 1614 d3_rgbPrototype.hsl = function() { 1623 function d3_rgb_parse(format, rgb, hsl) { 1629 case "hsl": 1631 return hsl(parseFloat(m2[0]), parseFloat(m2[1]) / 100, parseFloat(m2[2]) / 100); 5694 return (t === "string" ? d3_rgb_names.has(b) || /^(#|rgb\(|hsl\()/.test(b) ? d3_interpolateRgb : d3_interpolateString : b instanceof d3_Color ? d3_interpolateRgb : Array.isArray(b) ? d3_interpolateArray : t === "object" && isNaN(b) ? d3_interpolateObject : d3_interpolateNumber)(a, b); 5819 a = d3.hsl(a); 5820 b = d3.hsl(b);
|