Home
last modified time | relevance | path

Searched refs:background_luminance (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/ui/gfx/
Dcolor_utils.cc64 double ContrastRatio(double foreground_luminance, double background_luminance) { in ContrastRatio() argument
66 DCHECK_GE(background_luminance, 0.0); in ContrastRatio()
68 background_luminance += 0.05; in ContrastRatio()
69 return (foreground_luminance > background_luminance) ? in ContrastRatio()
70 (foreground_luminance / background_luminance) : in ContrastRatio()
71 (background_luminance / foreground_luminance); in ContrastRatio()
269 unsigned char background_luminance = in BlendTowardOppositeLuminance() local
272 (background_luminance < 128) ? SK_ColorWHITE : SK_ColorBLACK; in BlendTowardOppositeLuminance()
278 const double background_luminance = RelativeLuminance(background); in GetReadableColor() local
279 return (ContrastRatio(RelativeLuminance(foreground), background_luminance) >= in GetReadableColor()
[all …]
Dsys_color_change_listener.cc31 int background_luminance = color_utils::GetLuminanceForColor( in UpdateInvertedColorScheme() local
38 foreground_luminance > background_luminance; in UpdateInvertedColorScheme()
/external/chromium_org/chrome/browser/ui/views/autofill/
Dautofill_dialog_views.cc673 int background_luminance = in OnPaint() local
676 7 + 15 * (255 - background_luminance) / 255); in OnPaint()
678 10 + 20 * (255 - background_luminance) / 255); in OnPaint()