Searched refs:color_list (Results 1 – 3 of 3) sorted by relevance
66 const base::ListValue* color_list = NULL; in LoadColors() local70 if (!iter.value().GetAsList(&color_list) || in LoadColors()72 ((color_list->GetSize() != 3) && in LoadColors()73 ((color_list->GetSize() != 4) || in LoadColors()76 !color_list->GetDouble(3, &alpha))) || in LoadColors()78 !color_list->GetInteger(0, &color) || in LoadColors()79 !color_list->GetInteger(1, &color) || in LoadColors()80 !color_list->GetInteger(2, &color)) { in LoadColors()
1049 const base::ListValue* color_list; in ReadColorsFromJSON() local1050 if (iter.value().GetAsList(&color_list) && in ReadColorsFromJSON()1051 ((color_list->GetSize() == 3) || (color_list->GetSize() == 4))) { in ReadColorsFromJSON()1054 if (color_list->GetInteger(0, &r) && in ReadColorsFromJSON()1055 color_list->GetInteger(1, &g) && in ReadColorsFromJSON()1056 color_list->GetInteger(2, &b)) { in ReadColorsFromJSON()1057 if (color_list->GetSize() == 4) { in ReadColorsFromJSON()1060 if (color_list->GetDouble(3, &alpha)) { in ReadColorsFromJSON()1062 } else if (color_list->GetInteger(3, &alpha_int) && in ReadColorsFromJSON()
797 palette->colors[i].r = cmap->color_list[i].red; in BE_GL_LoadLibrary()798 palette->colors[i].g = cmap->color_list[i].green; in BE_GL_LoadLibrary()799 palette->colors[i].b = cmap->color_list[i].blue; in BE_GL_LoadLibrary()