Searched refs:foreground_luminance (Results 1 – 2 of 2) sorted by relevance
64 double ContrastRatio(double foreground_luminance, double background_luminance) { in ContrastRatio() argument65 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()
29 int foreground_luminance = color_utils::GetLuminanceForColor( in UpdateInvertedColorScheme() local38 foreground_luminance > background_luminance; in UpdateInvertedColorScheme()