Home
last modified time | relevance | path

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

/external/skia/gm/
Dgradient_matrix.cpp23 constexpr SkColor gColors[] = { variable
66 return SkGradientShader::MakeLinear(pts, gColors, nullptr, SK_ARRAY_COUNT(gColors), in make_linear_gradient()
75 return SkGradientShader::MakeRadial(center, radius, gColors, nullptr, SK_ARRAY_COUNT(gColors), in make_radial_gradient()
Dimagesource2.cpp34 constexpr SkPMColor gColors[] = { in onOnceBeforeDraw() local
53 p.setColor(gColors[curColor]); in onOnceBeforeDraw()
56 curColor = (curColor+1) % SK_ARRAY_COUNT(gColors); in onOnceBeforeDraw()
Dmegalooper.cpp78 static const SkColor gColors[4]; member in MegaLooperGM
102 paint.setColor(gColors[i]); in draw0x0()
134 loopPaint.setLooper(create1Looper(-kOffsetToOutsideClip, 0, gColors[i])); in draw4x1()
224 paint->setColorFilter(SkColorFilter::MakeModeFilter(gColors[i], SkBlendMode::kSrcIn)); in create4Looper()
240 const SkColor MegaLooperGM::gColors[4] = { member in MegaLooperGM
Dgradients_no_texture.cpp19 constexpr SkColor gColors[] = { variable
24 { 1, gColors, nullptr },
25 { 2, gColors, nullptr },
26 { 3, gColors, nullptr },
27 { 4, gColors, nullptr },
Ddrawatlascolor.cpp110 SkColor gColors[] = { in onDraw() local
119 const int numColors = SK_ARRAY_COUNT(gColors); in onDraw()
131 quadColors[i] = gColors[i]; in onDraw()
Dgradients.cpp21 constexpr SkColor gColors[] = { variable
48 { 2, gColors, gColors4f, nullptr },
49 { 2, gColors, gColors4f, gPos0 },
50 { 2, gColors, gColors4f, gPos1 },
51 { 5, gColors, gColors4f, nullptr },
52 { 5, gColors, gColors4f, gPos2 },
490 SkIntToScalar(200), gColors, nullptr, 5, in onDraw()
628 const SkColor gColors[] = { 0xFFFFFFFF, 0xFF000000 }; in onOnceBeforeDraw() local
629 fShader = SkGradientShader::MakeRadial(center, kRadius, gColors, nullptr, 2, in onOnceBeforeDraw()
667 SK_ARRAY_COUNT(gColors), SkShader::kClamp_TileMode); in onOnceBeforeDraw()
[all …]
Dshadertext.cpp41 constexpr SkColor gColors[] = { variable
46 { 2, gColors, nullptr },
47 { 5, gColors, nullptr },
DgradientDirtyLaundry.cpp19 constexpr SkColor gColors[] = { variable
33 { 40, gColors, nullptr },
Dgradients_2pt_conical.cpp20 constexpr SkColor gColors[] = { variable
35 { 2, gColors, gPos0 },
36 { 2, gColors, gPos1 },
37 { 5, gColors, gPos2 },
Ddashing.cpp440 constexpr SkColor gColors[kIntervalLength] = { in onDraw() local
467 paint.setColor(gColors[phase]); in onDraw()
478 paint.setColor(gColors[phase]); in onDraw()
/external/skia/samplecode/
DSampleChart.cpp124 static SkColor gColors[kNumGraphs] = { 0x0 }; in onDrawContent() local
125 if (0 == gColors[0]) { in onDrawContent()
127 gColors[i] = colorRand.nextU() | 0xff000000; in onDrawContent()
157 fillPaint.setColor((gColors[i] & 0x00ffffff) | 0x80000000); in onDrawContent()
160 plotPaint.setColor(gColors[i]); in onDrawContent()
DSampleGradients.cpp48 static const SkColor gColors[] = { variable
58 { 2, gColors, nullptr },
59 { 2, gColors, gPos0 },
60 { 2, gColors, gPos1 },
61 { 5, gColors, nullptr },
62 { 5, gColors, gPos2 }
DSampleColorFilter.cpp171 static const SkColor gColors[] = { in onDrawContent() local
183 for (size_t y = 0; y < SK_ARRAY_COUNT(gColors); y++) { in onDrawContent()
185 paint.setColorFilter(SkColorFilter::MakeModeFilter(gColors[y], gModes[x])); in onDrawContent()
DSampleShaderText.cpp48 static const SkColor gColors[] = { variable
53 { 2, gColors, nullptr },
54 { 5, gColors, nullptr },
DSampleSlides.cpp163 static const SkColor gColors[] = { variable
173 { 2, gColors, nullptr },
174 { 2, gColors, gPos0 },
175 { 2, gColors, gPos1 },
176 { 5, gColors, nullptr },
177 { 5, gColors, gPos2 }
/external/skia/bench/
DGradientBench.cpp23 static const SkColor gColors[] = { variable
42 { 2, gColors, nullptr, "" },
43 { 50, gColors, nullptr, "_hicolor" }, // many color gradient
44 { 3, gColors, nullptr, "_3color" },
46 { 2, gColors, gPos, "_pos" },
/external/skia/tests/
DGradientTest.cpp162 static const SkColor gColors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; in TestGradientShaders() local
171 rec.fColorCount = SK_ARRAY_COUNT(gColors); in TestGradientShaders()
172 rec.fColors = gColors; in TestGradientShaders()