Searched defs:hsl (Results 1 - 15 of 15) sorted by relevance

/external/chromium_org/ui/gfx/
H A Dcolor_utils_unittest.cc13 color_utils::HSL hsl = { 0, 0, 0 }; local
14 color_utils::SkColorToHSL(SK_ColorRED, &hsl);
15 EXPECT_DOUBLE_EQ(hsl.h, 0);
16 EXPECT_DOUBLE_EQ(hsl.s, 1);
17 EXPECT_DOUBLE_EQ(hsl.l, 0.5);
21 color_utils::HSL hsl = { 0, 0, 0 }; local
22 color_utils::SkColorToHSL(SkColorSetARGB(255, 128, 128, 128), &hsl);
23 EXPECT_DOUBLE_EQ(hsl.h, 0);
24 EXPECT_DOUBLE_EQ(hsl.s, 0);
25 EXPECT_EQ(static_cast<int>(hsl
31 color_utils::HSL hsl = { 0, 1, 0.5 }; local
46 color_utils::HSL hsl = { 0, 0, 0 }; local
59 color_utils::HSL hsl = { 0, 0, 0 }; local
74 color_utils::HSL hsl = { -1, -1, -1 }; local
[all...]
H A Dcolor_utils.cc58 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
155 HSL hsl; local
[all...]
H A Dskbitmap_operations_unittest.cc233 color_utils::HSL hsl = { -1, -1, -1 }; local
234 SkBitmap shifted = ReferenceCreateHSLShiftedBitmap(src, hsl);
271 color_utils::HSL hsl = { 0, -1, -1 }; local
273 SkBitmap shifted = SkBitmapOperations::CreateHSLShiftedBitmap(src, hsl);
312 color_utils::HSL hsl = { h, s, l }; local
313 SkBitmap ref_shifted = ReferenceCreateHSLShiftedBitmap(src, hsl);
314 SkBitmap shifted = SkBitmapOperations::CreateHSLShiftedBitmap(src, hsl);
/external/chromium_org/chrome/browser/themes/
H A Dtheme_service.cc312 color_utils::HSL hsl; local
313 if (theme_supplier_.get() && theme_supplier_->GetTint(id, &hsl))
314 return hsl;
H A Dbrowser_theme_pack.cc818 bool BrowserThemePack::GetTint(int id, color_utils::HSL* hsl) const {
822 hsl->h = tints_[i].h;
823 hsl->s = tints_[i].s;
824 hsl->l = tints_[i].l;
975 color_utils::HSL hsl = { -1, -1, -1 }; local
977 if (tint_list->GetDouble(0, &hsl.h) &&
978 tint_list->GetDouble(1, &hsl.s) &&
979 tint_list->GetDouble(2, &hsl.l)) {
982 temp_tints[id] = hsl;
1504 color_utils::HSL hsl; local
[all...]
/external/chromium/chrome/browser/themes/
H A Dbrowser_theme_pack.cc454 bool BrowserThemePack::GetTint(int id, color_utils::HSL* hsl) const {
458 hsl->h = tints_[i].h;
459 hsl->s = tints_[i].s;
460 hsl->l = tints_[i].l;
620 color_utils::HSL hsl = { -1, -1, -1 }; local
622 if (ValidDoubleValue(tint_list, 0, &hsl.h) &&
623 ValidDoubleValue(tint_list, 1, &hsl.s) &&
624 ValidDoubleValue(tint_list, 2, &hsl.l)) {
627 temp_tints[id] = hsl;
1040 color_utils::HSL hsl; local
[all...]
H A Dtheme_service.cc543 color_utils::HSL hsl; local
544 if (theme_pack_.get() && theme_pack_->GetTint(id, &hsl))
545 return hsl;
/external/chromium/chrome/browser/ui/gtk/
H A Dbrowser_titlebar.cc111 color_utils::HSL hsl; local
114 color->blue >> 8), &hsl);
115 return hsl;
H A Dgtk_theme_service.cc876 color_utils::HSL hsl; local
877 color_utils::SkColorToHSL(GdkToSkColor(color), &hsl); local
880 hsl.s = default_tint.s;
883 hsl.l = default_tint.l;
885 tints_[id] = hsl;
H A Dbrowser_window_gtk.cc1759 color_utils::HSL hsl = { -1, 0.5, 0.65 }; local
1760 SkColor frame_prelight_color = color_utils::HSLShift(frame_color, hsl);
/external/chromium_org/chrome/browser/ui/gtk/
H A Dbrowser_titlebar.cc118 color_utils::HSL hsl; local
121 color->blue >> 8), &hsl);
122 return hsl;
H A Dgtk_theme_service.cc933 color_utils::HSL hsl; local
934 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(*color), &hsl);
937 hsl.s = default_tint.s;
940 hsl.l = default_tint.l;
942 tints_[id] = hsl;
H A Dbrowser_window_gtk.cc1762 color_utils::HSL hsl = { -1, 0.5, 0.65 }; local
1763 SkColor frame_prelight_color = color_utils::HSLShift(frame_color, hsl);
/external/chromium_org/chrome/browser/ui/libgtk2ui/
H A Dgtk2_ui.cc706 color_utils::HSL hsl; local
707 color_utils::SkColorToHSL(GdkColorToSkColor(*color), &hsl);
710 hsl.s = default_tint.s;
713 hsl.l = default_tint.l;
715 tints_[id] = hsl;
/external/chromium_org/ui/native_theme/
H A Dnative_theme_base.cc73 SkColor BrightenColor(const color_utils::HSL& hsl, SkAlpha alpha, argument
75 color_utils::HSL adjusted = hsl;

Completed in 864 milliseconds