Home
last modified time | relevance | path

Searched refs:gColors (Results 1 – 14 of 14) sorted by relevance

/external/skia/src/utils/
DSkParseColor.cpp163 } gColors[] = { variable
320 *color = SkColorSetRGB(gColors[index].r, gColors[index].g, gColors[index].b); in FindNamedColor()
/external/skia/gm/
Dgradient_matrix.cpp22 constexpr SkColor gColors[] = { variable
65 return SkGradientShader::MakeLinear(pts, gColors, nullptr, std::size(gColors), in make_linear_gradient()
74 return SkGradientShader::MakeRadial(center, radius, gColors, nullptr, std::size(gColors), in make_radial_gradient()
Dimagesource2.cpp45 constexpr SkPMColor gColors[] = { in onOnceBeforeDraw() local
64 p.setColor(gColors[curColor]); in onOnceBeforeDraw()
67 curColor = (curColor+1) % std::size(gColors); in onOnceBeforeDraw()
Dgradients_no_texture.cpp33 constexpr SkColor gColors[] = { variable
38 { 1, gColors, nullptr },
39 { 2, gColors, nullptr },
40 { 3, gColors, nullptr },
41 { 4, gColors, nullptr },
Ddrawatlascolor.cpp120 SkColor gColors[] = { in onDraw() local
129 const int numColors = std::size(gColors); in onDraw()
141 quadColors[i] = gColors[i]; in onDraw()
Dgradient_dirty_laundry.cpp31 constexpr SkColor gColors[] = { variable
45 { 40, gColors, nullptr },
Dgradients.cpp40 constexpr SkColor gColors[] = { variable
67 { 2, gColors, gColors4f, nullptr },
68 { 2, gColors, gColors4f, gPos0 },
69 { 2, gColors, gColors4f, gPos1 },
70 { 5, gColors, gColors4f, nullptr },
71 { 5, gColors, gColors4f, gPos2 },
482 SkIntToScalar(200), gColors, nullptr, 5, in onDraw()
644 std::size(gColors), SkTileMode::kClamp); in onOnceBeforeDraw()
692 std::size(gColors), SkTileMode::kClamp); in onOnceBeforeDraw()
Dgradients_2pt_conical.cpp32 constexpr SkColor gColors[] = { variable
47 { 2, gColors, gPos0 },
48 { 2, gColors, gPos1 },
49 { 5, gColors, gPos2 },
Ddashing.cpp422 constexpr SkColor gColors[kIntervalLength] = { in onDraw() local
449 paint.setColor(gColors[phase]); in onDraw()
460 paint.setColor(gColors[phase]); in onDraw()
/external/skia/tools/viewer/
DChartSlide.cpp117 static SkColor gColors[kNumGraphs] = { 0x0 }; in draw() local
118 if (0 == gColors[0]) { in draw()
120 gColors[i] = colorRand.nextU() | 0xff000000; in draw()
149 fillPaint.setColor((gColors[i] & 0x00ffffff) | 0x80000000); in draw()
152 plotPaint.setColor(gColors[i]); in draw()
DSlidesSlide.cpp159 static const SkColor gColors[] = { variable
169 { 2, gColors, nullptr },
170 { 2, gColors, gPos0 },
171 { 2, gColors, gPos1 },
172 { 5, gColors, nullptr },
173 { 5, gColors, gPos2 }
/external/skia/tests/
DTextureStripAtlasManagerTest.cpp42 static const SkColor gColors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() local
52 gColors, in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
DGradientTest.cpp210 static const SkColor gColors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; in TestGradientShaders() local
219 rec.fColorCount = std::size(gColors); in TestGradientShaders()
220 rec.fColors = gColors; in TestGradientShaders()
/external/skia/bench/
DGradientBench.cpp25 static const SkColor gColors[] = { variable
44 { 2, gColors, nullptr, "" },
45 { 50, gColors, nullptr, "_hicolor" }, // many color gradient
46 { 3, gColors, nullptr, "_3color" },
48 { 2, gColors, gPos, "_pos" },