Home
last modified time | relevance | path

Searched refs:SK_ARRAY_COUNT (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/external/skia/gm/
Dpolygons.cpp50 for (size_t i = 0; i < SK_ARRAY_COUNT(p4); ++i) { in onOnceBeforeDraw()
51 SkScalar angle = 2 * SK_ScalarPI * i / SK_ARRAY_COUNT(p4); in onOnceBeforeDraw()
59 { p0, SK_ARRAY_COUNT(p0) }, in onOnceBeforeDraw()
60 { p1, SK_ARRAY_COUNT(p1) }, in onOnceBeforeDraw()
61 { p2, SK_ARRAY_COUNT(p2) }, in onOnceBeforeDraw()
62 { p3, SK_ARRAY_COUNT(p3) }, in onOnceBeforeDraw()
63 { p4, SK_ARRAY_COUNT(p4) }, in onOnceBeforeDraw()
64 { p5, SK_ARRAY_COUNT(p5) }, in onOnceBeforeDraw()
65 { p6, SK_ARRAY_COUNT(p6) }, in onOnceBeforeDraw()
66 { p7, SK_ARRAY_COUNT(p7) } in onOnceBeforeDraw()
[all …]
Dconvex_all_line_paths.cpp140 SK_ARRAY_COUNT(gPoints0),
141 SK_ARRAY_COUNT(gPoints1),
142 SK_ARRAY_COUNT(gPoints2),
143 SK_ARRAY_COUNT(gPoints3),
144 SK_ARRAY_COUNT(gPoints4),
145 SK_ARRAY_COUNT(gPoints5),
146 SK_ARRAY_COUNT(gPoints6),
147 SK_ARRAY_COUNT(gPoints7),
148 SK_ARRAY_COUNT(gPoints8),
149 SK_ARRAY_COUNT(gPoints9),
[all …]
Dtilemodes_scaled.cpp32 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); in makebm()
53 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)];
73 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onOnceBeforeDraw()
101 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
102 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
118 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDraw()
119 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilterQualitys); j++) { in onDraw()
121 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
122 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
179 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
[all …]
Dtilemodes.cpp32 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
54 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)];
75 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onOnceBeforeDraw()
98 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
99 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
116 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDraw()
117 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilters); j++) { in onDraw()
119 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
120 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
176 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
[all …]
Dshadertext.cpp28 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
105 const int textLen = SK_ARRAY_COUNT(text) - 1; in onDraw()
123 constexpr int gradCount = SK_ARRAY_COUNT(gGradData) * in onDraw()
124 SK_ARRAY_COUNT(gGradMakers); in onDraw()
125 constexpr int bmpCount = SK_ARRAY_COUNT(tileModes) * in onDraw()
126 SK_ARRAY_COUNT(tileModes); in onDraw()
130 for (size_t d = 0; d < SK_ARRAY_COUNT(gGradData); ++d) { in onDraw()
131 for (size_t m = 0; m < SK_ARRAY_COUNT(gGradMakers); ++m) { in onDraw()
140 for (size_t tx = 0; tx < SK_ARRAY_COUNT(tileModes); ++tx) { in onDraw()
141 for (size_t ty = 0; ty < SK_ARRAY_COUNT(tileModes); ++ty) { in onDraw()
[all …]
Danisotropic.cpp65 SkASSERT(kNumVertImages-1 == (int)SK_ARRAY_COUNT(gScales)/2); in onDraw()
68 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
72 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
76 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height; in onDraw()
83 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
87 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
93 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fBM.height() + kSpacer); in onDraw()
Dblurrect.cpp79 colors, pos, SK_ARRAY_COUNT(colors), tm, in MakeRadial()
118 for (size_t s = 0; s < SK_ARRAY_COUNT(scales); ++s) { in onDraw()
120 for (size_t f = 0; f < SK_ARRAY_COUNT(fMaskFilters); ++f) { in onDraw()
134 this->drawProcs(canvas, r, paint, false, procs, SK_ARRAY_COUNT(procs)); in onDraw()
136 this->drawProcs(canvas, r, paintWithRadial, false, procs, SK_ARRAY_COUNT(procs)); in onDraw()
138 this->drawProcs(canvas, r, paint, true, procs, SK_ARRAY_COUNT(procs)); in onDraw()
140 this->drawProcs(canvas, r, paintWithRadial, true, procs, SK_ARRAY_COUNT(procs)); in onDraw()
143 canvas->translate(0, SK_ARRAY_COUNT(procs) * r.height() * 4/3 * scales[s]); in onDraw()
189 for (size_t i = 0 ; i < SK_ARRAY_COUNT(widths) ; i++) {
196 for (size_t j = 0 ; j < SK_ARRAY_COUNT(radii) ; j++) {
[all …]
Dgammatext.cpp18 return SkGradientShader::MakeLinear(pts, bw, nullptr, SK_ARRAY_COUNT(bw), in make_heatGradient()
78 for (size_t i = 0; i < SK_ARRAY_COUNT(fg); ++i) { in onDraw()
87 x += SkIntToScalar(1024) / SK_ARRAY_COUNT(fg); in onDraw()
131 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in GammaShaderTextGM()
146 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onOnceBeforeDraw()
158 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onDraw()
Dconstcolorprocessor.cpp45 fShader = SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in onOnceBeforeDraw()
81 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kModeStrs) == GrConstColorProcessor::kInputModeCnt); in onDraw()
86 for (size_t paintType = 0; paintType < SK_ARRAY_COUNT(kPaintColors) + 1; ++paintType) { in onDraw()
87 for (size_t procColor = 0; procColor < SK_ARRAY_COUNT(kColors); ++procColor) { in onDraw()
99 if (paintType >= SK_ARRAY_COUNT(kPaintColors)) { in onDraw()
126 if (paintType >= SK_ARRAY_COUNT(kPaintColors)) { in onDraw()
Dpictureimagegenerator.cpp71 SkASSERT(SK_ARRAY_COUNT(pos1) == SK_ARRAY_COUNT(colors1)); in draw_vector_logo()
72 paint.setShader(SkGradientShader::MakeLinear(pts1, colors1, pos1, SK_ARRAY_COUNT(pos1), in draw_vector_logo()
89 SkASSERT(SK_ARRAY_COUNT(pos2) == SK_ARRAY_COUNT(colors2)); in draw_vector_logo()
90 paint.setShader(SkGradientShader::MakeLinear(pts2, colors2, pos2, SK_ARRAY_COUNT(pos2), in draw_vector_logo()
146 for (size_t i = 0; i < SK_ARRAY_COUNT(configs); ++i) { in onDraw()
Dshadertext3.cpp31 SK_ARRAY_COUNT(kColors0), SkShader::kClamp_TileMode)); in makebm()
34 SK_ARRAY_COUNT(kColors1), SkShader::kClamp_TileMode)); in makebm()
46 constexpr int kTextLen = SK_ARRAY_COUNT(kText) - 1;
97 for (size_t tm0 = 0; tm0 < SK_ARRAY_COUNT(kTileModes); ++tm0) { in onDraw()
98 for (size_t tm1 = 0; tm1 < SK_ARRAY_COUNT(kTileModes); ++tm1) { in onDraw()
Dtextbloblooper.cpp92 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_shader()
192 compound, SK_ARRAY_COUNT(compound))); in onOnceBeforeDraw()
195 looperSandwhich, SK_ARRAY_COUNT(looperSandwhich))); in onOnceBeforeDraw()
199 looperSandwhich, SK_ARRAY_COUNT(looperSandwhich))); in onOnceBeforeDraw()
203 xfermode, SK_ARRAY_COUNT(xfermode))); in onOnceBeforeDraw()
204 fLoopers.push_back(setupLooper(0, nullptr, skew, SK_ARRAY_COUNT(skew))); in onOnceBeforeDraw()
211 kitchenSink, SK_ARRAY_COUNT(kitchenSink))); in onOnceBeforeDraw()
215 kitchenSink, SK_ARRAY_COUNT(kitchenSink))); in onOnceBeforeDraw()
/external/skia/tools/
Dtest_font_data.cpp479 const int CourierNewkNormalCharCodesCount = (int) SK_ARRAY_COUNT(CourierNewkNormalCharCodes);
810 const int CourierNewkBoldCharCodesCount = (int) SK_ARRAY_COUNT(CourierNewkBoldCharCodes);
1162 const int CourierNewkItalicCharCodesCount = (int) SK_ARRAY_COUNT(CourierNewkItalicCharCodes);
1492 const int CourierNewkBoldItalicCharCodesCount = (int) SK_ARRAY_COUNT(CourierNewkBoldItalicCharCodes…
2430 const int LiberationSanskNormalCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSanskNormalCharCodes…
3377 const int LiberationSanskBoldCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSanskBoldCharCodes);
3726 const int LiberationSanskItalicCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSanskItalicCharCodes…
4658 const int LiberationSanskBoldItalicCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSanskBoldItalicC…
4807 const int HiraginoMaruGothicProkNormalCharCodesCount = (int) SK_ARRAY_COUNT(HiraginoMaruGothicProkN…
5508 const int PapyruskNormalCharCodesCount = (int) SK_ARRAY_COUNT(PapyruskNormalCharCodes);
[all …]
/external/skia/tests/
DScalarTest.cpp60 { gF0, SK_ARRAY_COUNT(gF0), true }, in test_isRectFinite()
61 { gF1, SK_ARRAY_COUNT(gF1), true }, in test_isRectFinite()
63 { gI0, SK_ARRAY_COUNT(gI0), false }, in test_isRectFinite()
64 { gI1, SK_ARRAY_COUNT(gI1), false }, in test_isRectFinite()
65 { gI2, SK_ARRAY_COUNT(gI2), false }, in test_isRectFinite()
66 { gI3, SK_ARRAY_COUNT(gI3), false }, in test_isRectFinite()
69 for (size_t i = 0; i < SK_ARRAY_COUNT(gSets); ++i) { in test_isRectFinite()
168 size_t i, n = SK_ARRAY_COUNT(data); in test_isfinite()
171 for (size_t k = 0; k < SK_ARRAY_COUNT(gProc1); ++k) { in test_isfinite()
182 for (size_t k = 0; k < SK_ARRAY_COUNT(gProc1); ++k) { in test_isfinite()
[all …]
DPathOpsCubicIntersectionTestData.cpp46 const size_t pointDegenerates_count = SK_ARRAY_COUNT(pointDegenerates);
54 SK_ARRAY_COUNT(notPointDegenerates);
110 const size_t tests_count = SK_ARRAY_COUNT(tests);
145 const size_t lines_count = SK_ARRAY_COUNT(lines);
157 const size_t notLines_count = SK_ARRAY_COUNT(notLines);
203 const size_t modEpsilonLines_count = SK_ARRAY_COUNT(modEpsilonLines);
239 const size_t lessEpsilonLines_count = SK_ARRAY_COUNT(lessEpsilonLines);
275 const size_t negEpsilonLines_count = SK_ARRAY_COUNT(negEpsilonLines);
DPackBitsTest.cpp29 { gTest80, SK_ARRAY_COUNT(gTest80) }, in test_pack8()
30 { gTest81, SK_ARRAY_COUNT(gTest81) }, in test_pack8()
31 { gTest82, SK_ARRAY_COUNT(gTest82) }, in test_pack8()
32 { gTest83, SK_ARRAY_COUNT(gTest83) }, in test_pack8()
33 { gTest84, SK_ARRAY_COUNT(gTest84) } in test_pack8()
36 for (size_t i = 4; i < SK_ARRAY_COUNT(gTests); i++) { in test_pack8()
DPathOpsQuadIntersectionTestData.cpp17 const size_t quadraticPoints_count = SK_ARRAY_COUNT(quadraticPoints);
45 const size_t quadraticLines_count = SK_ARRAY_COUNT(quadraticLines);
83 SK_ARRAY_COUNT(quadraticModEpsilonLines);
104 const size_t quadraticTests_count = SK_ARRAY_COUNT(quadraticTests);
DTextBlobTest.cpp28 RunBuilderTest(reporter, builder, set1, SK_ARRAY_COUNT(set1), set1, SK_ARRAY_COUNT(set1)); in TestBuilder()
33 RunBuilderTest(reporter, builder, set2, SK_ARRAY_COUNT(set2), set2, SK_ARRAY_COUNT(set2)); in TestBuilder()
38 RunBuilderTest(reporter, builder, set3, SK_ARRAY_COUNT(set3), set3, SK_ARRAY_COUNT(set3)); in TestBuilder()
45 RunBuilderTest(reporter, builder, set4, SK_ARRAY_COUNT(set4), set4, SK_ARRAY_COUNT(set4)); in TestBuilder()
56 RunBuilderTest(reporter, builder, set5, SK_ARRAY_COUNT(set5), mergedSet5, in TestBuilder()
57 SK_ARRAY_COUNT(mergedSet5)); in TestBuilder()
67 RunBuilderTest(reporter, builder, set6, SK_ARRAY_COUNT(set6), mergedSet6, in TestBuilder()
68 SK_ARRAY_COUNT(mergedSet6)); in TestBuilder()
95 RunBuilderTest(reporter, builder, set7, SK_ARRAY_COUNT(set7), mergedSet7, in TestBuilder()
96 SK_ARRAY_COUNT(mergedSet7)); in TestBuilder()
DPathCoverageTest.cpp153 one_d_pe(gXY, SK_ARRAY_COUNT(gXY), reporter); in TestQuadPointCount()
154 one_d_pe(gSawtooth, SK_ARRAY_COUNT(gSawtooth), reporter); in TestQuadPointCount()
155 one_d_pe(gOvalish, SK_ARRAY_COUNT(gOvalish), reporter); in TestQuadPointCount()
156 one_d_pe(gSharpSawtooth, SK_ARRAY_COUNT(gSharpSawtooth), reporter); in TestQuadPointCount()
157 one_d_pe(gRibbon, SK_ARRAY_COUNT(gRibbon), reporter); in TestQuadPointCount()
/external/skia/samplecode/
DSampleSubpixelTranslate.cpp68 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent()
74 …canvas->drawText( "AA Scaled", strlen("AA Scaled"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSiz… in onDrawContent()
77 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent()
82 …canvas->drawText( "Scaled", strlen("Scaled"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSize + 10… in onDrawContent()
85 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent()
90 …canvas->drawText( "AA No Scale", strlen("AA No Scale"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (… in onDrawContent()
93 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent()
98 …canvas->drawText( "No Scale", strlen("No Scale"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.wi… in onDrawContent()
DSampleTiling.cpp38 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); in makebm()
63 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in TilingView()
71 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)];
104 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDrawContent()
105 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDrawContent()
123 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDrawContent()
124 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilters); j++) { in onDrawContent()
126 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDrawContent()
127 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDrawContent()
DSampleShaderText.cpp27 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); in makebm()
114 const int textLen = SK_ARRAY_COUNT(text) - 1; in onDrawContent()
132 static const int gradCount = SK_ARRAY_COUNT(gGradData) * in onDrawContent()
133 SK_ARRAY_COUNT(gGradMakers); in onDrawContent()
134 static const int bmpCount = SK_ARRAY_COUNT(tileModes) * in onDrawContent()
135 SK_ARRAY_COUNT(tileModes); in onDrawContent()
139 for (size_t d = 0; d < SK_ARRAY_COUNT(gGradData); ++d) { in onDrawContent()
140 for (size_t m = 0; m < SK_ARRAY_COUNT(gGradMakers); ++m) { in onDrawContent()
146 for (size_t tx = 0; tx < SK_ARRAY_COUNT(tileModes); ++tx) { in onDrawContent()
147 for (size_t ty = 0; ty < SK_ARRAY_COUNT(tileModes); ++ty) { in onDrawContent()
[all …]
DSampleEffects.cpp41 paint->setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in paint_proc3()
64 SkPaint fPaint[SK_ARRAY_COUNT(gPaintProcs)];
78 for (i = 2; i < SK_ARRAY_COUNT(pts); i += 2) { in EffectsView()
82 for (i = 0; i < SK_ARRAY_COUNT(gPaintProcs); i++) { in EffectsView()
108 for (size_t i = 0; i < SK_ARRAY_COUNT(fPaint); i++) { in onDrawContent()
/external/skia/src/gpu/
DGrTestUtils.cpp40 uint32_t count = static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)); in test_matrix()
73 for (size_t i = 0; i < SK_ARRAY_COUNT(gMatrices); i++) { in TestMatrixPreservesRightAngles()
77 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles()
99 for (size_t i = 0; i < SK_ARRAY_COUNT(gMatrices); i++) { in TestMatrixRectStaysRect()
103 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect()
121 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect()
133 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare()
147 for (size_t i = 0; i < SK_ARRAY_COUNT(gRRect); i++) { in TestRRectSimple()
151 return gRRect[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRRect)))]; in TestRRectSimple()
192 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPath()
[all …]
/external/skia/src/core/
DSkTextFormatParams.h34 static_assert(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == SK_ARRAY_COUNT(kStdFakeBoldInterpValues),
36 static const int kStdFakeBoldInterpLength = SK_ARRAY_COUNT(kStdFakeBoldInterpKeys);

12345678910>>...18