Home
last modified time | relevance | path

Searched refs:foreground_luminance (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/ui/gfx/
Dcolor_utils.cc64 double ContrastRatio(double foreground_luminance, double background_luminance) { in ContrastRatio() argument
65 DCHECK_GE(foreground_luminance, 0.0); in ContrastRatio()
67 foreground_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()
Dsys_color_change_listener.cc29 int foreground_luminance = color_utils::GetLuminanceForColor( in UpdateInvertedColorScheme() local
38 foreground_luminance > background_luminance; in UpdateInvertedColorScheme()