Home
last modified time | relevance | path

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

/external/skia/gm/
Dgradient_matrix.cpp22 static const SkColor gColors[] = { variable
65 return SkGradientShader::CreateLinear(pts, gColors, NULL, SK_ARRAY_COUNT(gColors), in make_linear_gradient()
74 return SkGradientShader::CreateRadial(center, radius, gColors, NULL, SK_ARRAY_COUNT(gColors), in make_radial_gradient()
Dgradients.cpp19 static const SkColor gColors[] = { variable
34 { 2, gColors, NULL },
35 { 2, gColors, gPos0 },
36 { 2, gColors, gPos1 },
37 { 5, gColors, NULL },
38 { 5, gColors, gPos2 },
314 SkIntToScalar(200), gColors, NULL, 5, in onDraw()
447 const SkColor gColors[] = { 0xFFFFFFFF, 0xFF000000 }; in onOnceBeforeDraw() local
448 fShader.reset(SkGradientShader::CreateRadial(center, kRadius, gColors, NULL, 2, in onOnceBeforeDraw()
Dbitmapsource2.cpp32 static const SkPMColor gColors[] = { in onOnceBeforeDraw() local
52 p.setColor(gColors[curColor]); in onOnceBeforeDraw()
55 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]))->unref(); in draw4x1()
225 … SkColorFilter* cf = SkColorFilter::CreateModeFilter(gColors[i], SkXfermode::kSrcIn_Mode); in create4Looper()
242 const SkColor MegaLooperGM::gColors[4] = { member in MegaLooperGM
Dgradients_no_texture.cpp18 static const SkColor gColors[] = { variable
23 { 1, gColors, NULL },
24 { 2, gColors, NULL },
25 { 3, gColors, NULL },
26 { 4, gColors, NULL },
Dshadertext.cpp39 static const SkColor gColors[] = { variable
44 { 2, gColors, NULL },
45 { 5, gColors, NULL },
DgradientDirtyLaundry.cpp19 static const SkColor gColors[] = { variable
33 { 40, gColors, NULL },
Ddashing.cpp423 static const SkColor gColors[kIntervalLength] = { in onDraw() local
450 paint.setColor(gColors[phase]); in onDraw()
461 paint.setColor(gColors[phase]); in onDraw()
Dgradients_2pt_conical.cpp19 static const SkColor gColors[] = { variable
34 { 2, gColors, gPos0 },
35 { 2, gColors, gPos1 },
36 { 5, gColors, gPos2 },
/external/skia/samplecode/
DSampleChart.cpp123 static SkColor gColors[kNumGraphs] = { 0x0 }; in onDrawContent() local
124 if (0 == gColors[0]) { in onDrawContent()
126 gColors[i] = colorRand.nextU() | 0xff000000; in onDrawContent()
156 fillPaint.setColor((gColors[i] & 0x00ffffff) | 0x80000000); in onDrawContent()
159 plotPaint.setColor(gColors[i]); in onDrawContent()
DSampleGradients.cpp49 static const SkColor gColors[] = { variable
59 { 2, gColors, NULL },
60 { 2, gColors, gPos0 },
61 { 2, gColors, gPos1 },
62 { 5, gColors, NULL },
63 { 5, gColors, gPos2 }
DSampleColorFilter.cpp177 static const SkColor gColors[] = { in onDrawContent() local
189 for (size_t y = 0; y < SK_ARRAY_COUNT(gColors); y++) { in onDrawContent()
191 SkColorFilter* cf = SkColorFilter::CreateModeFilter(gColors[y], gModes[x]); in onDrawContent()
DSampleShaderText.cpp47 static const SkColor gColors[] = { variable
52 { 2, gColors, NULL },
53 { 5, gColors, NULL },
DSampleSlides.cpp164 static const SkColor gColors[] = { variable
174 { 2, gColors, NULL },
175 { 2, gColors, gPos0 },
176 { 2, gColors, gPos1 },
177 { 5, gColors, NULL },
178 { 5, gColors, gPos2 }
/external/skia/tests/
DGradientTest.cpp169 static const SkColor gColors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; in TestGradientShaders() local
178 rec.fColorCount = SK_ARRAY_COUNT(gColors); in TestGradientShaders()
179 rec.fColors = gColors; in TestGradientShaders()
/external/skia/bench/
DGradientBench.cpp24 static const SkColor gColors[] = { variable
42 { 2, gColors, NULL, "" },
43 { 50, gColors, NULL, "_hicolor" }, // many color gradient
44 { 3, gColors, NULL, "_3color" },