Home
last modified time | relevance | path

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

12345678910>>...45

/third_party/skia/gm/
Dpolygonoffset.cpp377 SK_ARRAY_COUNT(gPoints0),
378 SK_ARRAY_COUNT(gPoints1),
379 SK_ARRAY_COUNT(gPoints2),
380 SK_ARRAY_COUNT(gPoints3),
381 SK_ARRAY_COUNT(gPoints4),
382 SK_ARRAY_COUNT(gPoints5),
383 SK_ARRAY_COUNT(gPoints6),
384 SK_ARRAY_COUNT(gPoints7),
385 SK_ARRAY_COUNT(gPoints8),
386 SK_ARRAY_COUNT(gPoints9),
[all …]
Dpolygons.cpp56 for (size_t i = 0; i < SK_ARRAY_COUNT(p4); ++i) { in onOnceBeforeDraw()
57 SkScalar angle = 2 * SK_ScalarPI * i / SK_ARRAY_COUNT(p4); in onOnceBeforeDraw()
65 { p0, SK_ARRAY_COUNT(p0) }, in onOnceBeforeDraw()
66 { p1, SK_ARRAY_COUNT(p1) }, in onOnceBeforeDraw()
67 { p2, SK_ARRAY_COUNT(p2) }, in onOnceBeforeDraw()
68 { p3, SK_ARRAY_COUNT(p3) }, in onOnceBeforeDraw()
69 { p4, SK_ARRAY_COUNT(p4) }, in onOnceBeforeDraw()
70 { p5, SK_ARRAY_COUNT(p5) }, in onOnceBeforeDraw()
71 { p6, SK_ARRAY_COUNT(p6) }, in onOnceBeforeDraw()
72 { p7, SK_ARRAY_COUNT(p7) } in onOnceBeforeDraw()
[all …]
Dconvex_all_line_paths.cpp151 SK_ARRAY_COUNT(gPoints0),
152 SK_ARRAY_COUNT(gPoints1),
153 SK_ARRAY_COUNT(gPoints2),
154 SK_ARRAY_COUNT(gPoints3),
155 SK_ARRAY_COUNT(gPoints4),
156 SK_ARRAY_COUNT(gPoints5),
157 SK_ARRAY_COUNT(gPoints6),
158 SK_ARRAY_COUNT(gPoints7),
159 SK_ARRAY_COUNT(gPoints8),
160 SK_ARRAY_COUNT(gPoints9),
[all …]
Dtilemodes_scaled.cpp48 SK_ARRAY_COUNT(colors), SkTileMode::kClamp)); in makebm()
68 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)];
88 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onOnceBeforeDraw()
114 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
115 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
128 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDraw()
129 for (size_t j = 0; j < SK_ARRAY_COUNT(gSamplings); j++) { in onDraw()
131 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
132 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
183 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
[all …]
Dgradients.cpp207 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) { in onDraw()
209 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers); j++) { in onDraw()
264 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) { in onDraw()
266 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers4f); j++) { in onDraw()
316 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) { in onDraw()
318 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers); j++) { in onDraw()
408 pos, SK_ARRAY_COUNT(pos), in onDraw()
449 SK_ARRAY_COUNT(pos),
514 SK_ARRAY_COUNT(pos), in onDraw()
555 for (size_t i = 0; i < SK_ARRAY_COUNT(flags); i++) { in onDraw()
[all …]
Dtilemodes.cpp44 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
65 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)];
86 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onOnceBeforeDraw()
111 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
112 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
127 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDraw()
128 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilters); j++) { in onDraw()
130 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
131 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
183 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
[all …]
Danisotropic.cpp73 SkASSERT(kNumVertImages-1 == (int)SK_ARRAY_COUNT(gScales)/2); in onDraw()
76 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
80 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
84 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fImage->height() + kSpacer) - height; in onDraw()
91 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
95 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
101 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fImage->height() + kSpacer); in onDraw()
/third_party/flutter/skia/gm/
Dpolygonoffset.cpp377 SK_ARRAY_COUNT(gPoints0),
378 SK_ARRAY_COUNT(gPoints1),
379 SK_ARRAY_COUNT(gPoints2),
380 SK_ARRAY_COUNT(gPoints3),
381 SK_ARRAY_COUNT(gPoints4),
382 SK_ARRAY_COUNT(gPoints5),
383 SK_ARRAY_COUNT(gPoints6),
384 SK_ARRAY_COUNT(gPoints7),
385 SK_ARRAY_COUNT(gPoints8),
386 SK_ARRAY_COUNT(gPoints9),
[all …]
Dpolygons.cpp56 for (size_t i = 0; i < SK_ARRAY_COUNT(p4); ++i) { in onOnceBeforeDraw()
57 SkScalar angle = 2 * SK_ScalarPI * i / SK_ARRAY_COUNT(p4); in onOnceBeforeDraw()
65 { p0, SK_ARRAY_COUNT(p0) }, in onOnceBeforeDraw()
66 { p1, SK_ARRAY_COUNT(p1) }, in onOnceBeforeDraw()
67 { p2, SK_ARRAY_COUNT(p2) }, in onOnceBeforeDraw()
68 { p3, SK_ARRAY_COUNT(p3) }, in onOnceBeforeDraw()
69 { p4, SK_ARRAY_COUNT(p4) }, in onOnceBeforeDraw()
70 { p5, SK_ARRAY_COUNT(p5) }, in onOnceBeforeDraw()
71 { p6, SK_ARRAY_COUNT(p6) }, in onOnceBeforeDraw()
72 { p7, SK_ARRAY_COUNT(p7) } in onOnceBeforeDraw()
[all …]
Dconvex_all_line_paths.cpp151 SK_ARRAY_COUNT(gPoints0),
152 SK_ARRAY_COUNT(gPoints1),
153 SK_ARRAY_COUNT(gPoints2),
154 SK_ARRAY_COUNT(gPoints3),
155 SK_ARRAY_COUNT(gPoints4),
156 SK_ARRAY_COUNT(gPoints5),
157 SK_ARRAY_COUNT(gPoints6),
158 SK_ARRAY_COUNT(gPoints7),
159 SK_ARRAY_COUNT(gPoints8),
160 SK_ARRAY_COUNT(gPoints9),
[all …]
Dtilemodes_scaled.cpp42 SK_ARRAY_COUNT(colors), SkTileMode::kClamp)); in makebm()
63 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)];
83 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onOnceBeforeDraw()
114 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
115 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
128 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDraw()
129 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilterQualitys); j++) { in onDraw()
131 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
132 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
183 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
[all …]
Dgradients.cpp207 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) { in onDraw()
209 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers); j++) { in onDraw()
264 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) { in onDraw()
266 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers4f); j++) { in onDraw()
316 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) { in onDraw()
318 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers); j++) { in onDraw()
408 pos, SK_ARRAY_COUNT(pos), in onDraw()
449 SK_ARRAY_COUNT(pos),
514 SK_ARRAY_COUNT(pos), in onDraw()
555 for (size_t i = 0; i < SK_ARRAY_COUNT(flags); i++) { in onDraw()
[all …]
Dtilemodes.cpp45 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
67 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)];
88 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onOnceBeforeDraw()
113 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
114 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
130 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDraw()
131 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilters); j++) { in onDraw()
133 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw()
134 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw()
186 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
[all …]
Ddaa.cpp37 path.addPoly(tri1, SK_ARRAY_COUNT(tri1), false);
38 path.addPoly(tri2, SK_ARRAY_COUNT(tri2), false);
56 path.addPoly(rect1, SK_ARRAY_COUNT(rect1), false);
65 path.addPoly(rect2, SK_ARRAY_COUNT(rect2), false);
86 path.addPoly(rect1, SK_ARRAY_COUNT(rect1), false);
87 path.addPoly(rect2, SK_ARRAY_COUNT(rect2), false);
108 path.addPoly(rect1, SK_ARRAY_COUNT(rect1), false);
109 path.addPoly(rect2, SK_ARRAY_COUNT(rect2), false);
129 path.addPoly(poly, SK_ARRAY_COUNT(poly), false);
Dblurrect.cpp94 colors, pos, SK_ARRAY_COUNT(colors), tm, in make_radial()
126 for (size_t s = 0; s < SK_ARRAY_COUNT(scales); ++s) { in onDraw()
128 for (size_t f = 0; f < SK_ARRAY_COUNT(fMaskFilters); ++f) { in onDraw()
142 this->drawProcs(canvas, r, paint, false, procs, SK_ARRAY_COUNT(procs)); in onDraw()
144 this->drawProcs(canvas, r, paintWithRadial, false, procs, SK_ARRAY_COUNT(procs)); in onDraw()
146 this->drawProcs(canvas, r, paint, true, procs, SK_ARRAY_COUNT(procs)); in onDraw()
148 this->drawProcs(canvas, r, paintWithRadial, true, procs, SK_ARRAY_COUNT(procs)); in onDraw()
151 canvas->translate(0, SK_ARRAY_COUNT(procs) * r.height() * 4/3 * scales[s]); in onDraw()
194 for (size_t i = 0 ; i < SK_ARRAY_COUNT(widths) ; i++) {
201 for (size_t j = 0 ; j < SK_ARRAY_COUNT(radii) ; j++) {
[all …]
Danisotropic.cpp75 SkASSERT(kNumVertImages-1 == (int)SK_ARRAY_COUNT(gScales)/2); in onDraw()
78 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
82 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
86 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height; in onDraw()
93 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
97 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
103 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fBM.height() + kSpacer); in onDraw()
/third_party/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.cpp48 const size_t pointDegenerates_count = SK_ARRAY_COUNT(pointDegenerates);
56 SK_ARRAY_COUNT(notPointDegenerates);
112 const size_t tests_count = SK_ARRAY_COUNT(tests);
147 const size_t lines_count = SK_ARRAY_COUNT(lines);
159 const size_t notLines_count = SK_ARRAY_COUNT(notLines);
205 const size_t modEpsilonLines_count = SK_ARRAY_COUNT(modEpsilonLines);
241 const size_t lessEpsilonLines_count = SK_ARRAY_COUNT(lessEpsilonLines);
277 const size_t negEpsilonLines_count = SK_ARRAY_COUNT(negEpsilonLines);
/third_party/flutter/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()
/third_party/flutter/skia/src/gpu/
DGrTestUtils.cpp44 uint32_t count = static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)); in test_matrix()
77 for (size_t i = 0; i < SK_ARRAY_COUNT(gMatrices); i++) { in TestMatrixPreservesRightAngles()
81 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles()
103 for (size_t i = 0; i < SK_ARRAY_COUNT(gMatrices); i++) { in TestMatrixRectStaysRect()
107 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect()
119 wrapModes[0] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
120 wrapModes[1] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
134 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect()
146 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare()
160 for (size_t i = 0; i < SK_ARRAY_COUNT(gRRect); i++) { in TestRRectSimple()
[all …]
/third_party/skia/src/gpu/
DGrTestUtils.cpp42 uint32_t count = static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)); in test_matrix()
75 for (size_t i = 0; i < SK_ARRAY_COUNT(gMatrices); i++) { in TestMatrixPreservesRightAngles()
79 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles()
101 for (size_t i = 0; i < SK_ARRAY_COUNT(gMatrices); i++) { in TestMatrixRectStaysRect()
105 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect()
117 wrapModes[0] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
118 wrapModes[1] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
132 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect()
144 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare()
158 for (size_t i = 0; i < SK_ARRAY_COUNT(gRRect); i++) { in TestRRectSimple()
[all …]
/third_party/flutter/skia/samplecode/
DSampleSubpixelTranslate.cpp61 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent()
67 canvas->drawString("AA Scaled", fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSize + 10), in onDrawContent()
72 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent()
77 canvas->drawString("Scaled", fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSize + 10), in onDrawContent()
82 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent()
88 fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.width() + 10), in onDrawContent()
93 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent()
98 canvas->drawString("No Scale", fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.width() + 10), in onDrawContent()
DSampleEffects.cpp38 paint->setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in paint_proc3()
61 SkPaint fPaint[SK_ARRAY_COUNT(gPaintProcs)];
75 for (i = 2; i < SK_ARRAY_COUNT(pts); i += 2) { in EffectsView()
79 for (i = 0; i < SK_ARRAY_COUNT(gPaintProcs); i++) { in EffectsView()
98 for (size_t i = 0; i < SK_ARRAY_COUNT(fPaint); i++) { in onDrawContent()

12345678910>>...45