Home
last modified time | relevance | path

Searched refs:SK_ARRAY_COUNT (Results 1 - 25 of 572) sorted by relevance

12345678910>>...23

/third_party/skia/gm/
H A 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(gPoints
389 static_assert(SK_ARRAY_COUNT(gConvexSizes) == SK_ARRAY_COUNT(gConvexPoints), "array_mismatch"); global() member
414 static_assert(SK_ARRAY_COUNT(gSimpleSizes) == SK_ARRAY_COUNT(gSimplePoints), "array_mismatch"); global() member
[all...]
H A Dpolygons.cpp56 for (size_t i = 0; i < SK_ARRAY_COUNT(p4); ++i) {
57 SkScalar angle = 2 * SK_ScalarPI * i / SK_ARRAY_COUNT(p4);
65 { p0, SK_ARRAY_COUNT(p0) },
66 { p1, SK_ARRAY_COUNT(p1) },
67 { p2, SK_ARRAY_COUNT(p2) },
68 { p3, SK_ARRAY_COUNT(p3) },
69 { p4, SK_ARRAY_COUNT(p4) },
70 { p5, SK_ARRAY_COUNT(p5) },
71 { p6, SK_ARRAY_COUNT(p6) },
72 { p7, SK_ARRAY_COUNT(p
[all...]
H A 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++) {
114 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) {
115 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) {
128 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) {
129 for (size_t j = 0; j < SK_ARRAY_COUNT(gSamplings); j++) {
131 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) {
132 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) {
183 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(color in make_grad()
[all...]
H A Dgradients.cpp207 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) {
209 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers); j++) {
264 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) {
266 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers4f); j++) {
316 for (size_t i = 0; i < SK_ARRAY_COUNT(gGradData); i++) {
318 for (size_t j = 0; j < SK_ARRAY_COUNT(gGradMakers); j++) {
408 pos, SK_ARRAY_COUNT(pos),
449 SK_ARRAY_COUNT(pos), in DEF_SIMPLE_GM()
514 SK_ARRAY_COUNT(pos),
555 for (size_t i = 0; i < SK_ARRAY_COUNT(flag
[all...]
H A 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++) {
111 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) {
112 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) {
127 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) {
128 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilters); j++) {
130 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) {
131 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) {
183 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(color in make_grad()
[all...]
H A Danisotropic.cpp73 SkASSERT(kNumVertImages-1 == (int)SK_ARRAY_COUNT(gScales)/2);
76 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) {
80 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) {
84 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fImage->height() + kSpacer) - height;
91 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) {
95 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) {
101 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fImage->height() + kSpacer);
H A 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(gPoints
163 static_assert(SK_ARRAY_COUNT(gSizes) == SK_ARRAY_COUNT(gPoints), "array_mismatch"); global() member
[all...]
H A Dgammatext.cpp29 return SkGradientShader::MakeLinear(pts, bw, nullptr, SK_ARRAY_COUNT(bw), SkTileMode::kClamp); in make_heatGradient()
78 for (size_t i = 0; i < SK_ARRAY_COUNT(fg); ++i) {
87 x += SkIntToScalar(1024) / SK_ARRAY_COUNT(fg);
126 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in GammaShaderTextGM()
141 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) {
152 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) {
H A Dblurrect.cpp103 colors, pos, SK_ARRAY_COUNT(colors), tm, in make_radial()
135 for (size_t s = 0; s < SK_ARRAY_COUNT(scales); ++s) {
137 for (size_t f = 0; f < SK_ARRAY_COUNT(fMaskFilters); ++f) {
151 this->drawProcs(canvas, r, paint, false, procs, SK_ARRAY_COUNT(procs));
153 this->drawProcs(canvas, r, paintWithRadial, false, procs, SK_ARRAY_COUNT(procs));
155 this->drawProcs(canvas, r, paint, true, procs, SK_ARRAY_COUNT(procs));
157 this->drawProcs(canvas, r, paintWithRadial, true, procs, SK_ARRAY_COUNT(procs));
160 canvas->translate(0, SK_ARRAY_COUNT(procs) * r.height() * 4/3 * scales[s]);
203 for (size_t i = 0 ; i < SK_ARRAY_COUNT(widths) ; i++) { in DEF_SIMPLE_GM()
210 for (size_t j = 0 ; j < SK_ARRAY_COUNT(radi in DEF_SIMPLE_GM()
[all...]
H A Dcolorspace.cpp114 DEF_SIMPLE_GM(colorspace, canvas, W*SK_ARRAY_COUNT(gTFs), H*SK_ARRAY_COUNT(gGamuts)) { in DEF_SIMPLE_GM()
118 DEF_SIMPLE_GM(colorspace2, canvas, W*SK_ARRAY_COUNT(gTFs), H*SK_ARRAY_COUNT(gGamuts)) { in DEF_SIMPLE_GM()
H A Dlabyrinth.cpp56 for (size_t y = 0; y < SK_ARRAY_COUNT(kRows); ++y) { in draw_labyrinth()
57 for (size_t x = 0; x < SK_ARRAY_COUNT(kRows[0]); ++x) { in draw_labyrinth()
64 for (size_t x = 0; x < SK_ARRAY_COUNT(kCols); ++x) { in draw_labyrinth()
65 for (size_t y = 0; y < SK_ARRAY_COUNT(kCols[0]); ++y) { in draw_labyrinth()
/third_party/skia/tests/
H A 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(gProc in test_isfinite()
[all...]
H A 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);
H A 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);
H A 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()
H A DTextBlobTest.cpp31 RunBuilderTest(reporter, builder, set1, SK_ARRAY_COUNT(set1), set1, SK_ARRAY_COUNT(set1)); in TestBuilder()
36 RunBuilderTest(reporter, builder, set2, SK_ARRAY_COUNT(set2), set2, SK_ARRAY_COUNT(set2)); in TestBuilder()
41 RunBuilderTest(reporter, builder, set3, SK_ARRAY_COUNT(set3), set3, SK_ARRAY_COUNT(set3)); in TestBuilder()
48 RunBuilderTest(reporter, builder, set4, SK_ARRAY_COUNT(set4), set4, SK_ARRAY_COUNT(set4)); in TestBuilder()
59 RunBuilderTest(reporter, builder, set5, SK_ARRAY_COUNT(set5), mergedSet5, in TestBuilder()
60 SK_ARRAY_COUNT(mergedSet in TestBuilder()
[all...]
/third_party/skia/src/gpu/
H A 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(gRRec in TestRRectSimple()
[all...]
/third_party/skia/bench/
H A DTypefaceBench.cpp301 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF32, ctext, SK_ARRAY_COUNT(ctext),
303 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF16, ctext, SK_ARRAY_COUNT(ctext),
305 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF8, ctext, SK_ARRAY_COUNT(ctext),
309 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF32, atext, SK_ARRAY_COUNT(atext),
311 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF16, atext, SK_ARRAY_COUNT(atext),
313 DEF_BENCH(return new UtfToGlyph(SkTextEncoding::kUTF8, atext, SK_ARRAY_COUNT(atext),
/third_party/skia/samplecode/
H A 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()
94 for (size_t i = 0; i < SK_ARRAY_COUNT(fPaint); i++) {
H A DSampleMaterialShadows.cpp75 for (unsigned int i = 0; i < SK_ARRAY_COUNT(elevations); ++i) {
85 for (unsigned int i = 0; i < SK_ARRAY_COUNT(elevations); ++i) {
95 for (unsigned int i = 0; i < SK_ARRAY_COUNT(elevations); ++i) {
105 for (unsigned int i = 0; i < SK_ARRAY_COUNT(elevations); ++i) {
115 for (unsigned int i = 0; i < SK_ARRAY_COUNT(elevations); ++i) {
128 for (unsigned int i = 0; i < SK_ARRAY_COUNT(elevations); ++i) {
/third_party/skia/src/core/
H A DSkTextFormatParams.h34 static_assert(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == SK_ARRAY_COUNT(kStdFakeBoldInterpValues), variable
36 static const int kStdFakeBoldInterpLength = SK_ARRAY_COUNT(kStdFakeBoldInterpKeys);
/third_party/skia/docs/examples/
H A DPoint_Offset_2.cpp15 canvas->drawPoints(SkCanvas::kPolygon_PointMode, SK_ARRAY_COUNT(points), points, paint); in REG_FIDDLE()
16 SkPoint::Offset(points, SK_ARRAY_COUNT(points), 1, 9); in REG_FIDDLE()
17 canvas->drawPoints(SkCanvas::kPolygon_PointMode, SK_ARRAY_COUNT(points), points, paint); in REG_FIDDLE()
H A DPoint_Offset.cpp15 canvas->drawPoints(SkCanvas::kPolygon_PointMode, SK_ARRAY_COUNT(points), points, paint); in REG_FIDDLE()
16 SkPoint::Offset(points, SK_ARRAY_COUNT(points), { 1, 9 } ); in REG_FIDDLE()
17 canvas->drawPoints(SkCanvas::kPolygon_PointMode, SK_ARRAY_COUNT(points), points, paint); in REG_FIDDLE()
/third_party/skia/experimental/skrive/src/
H A DPaint.cpp35 SK_ARRAY_COUNT(gFillTypeMap) - 1)]); in parse_fill_stroke()
45 SK_ARRAY_COUNT(gCapMap) - 1)]); in parse_fill_stroke()
53 SK_ARRAY_COUNT(gJoinMap) - 1)]); in parse_fill_stroke()
61 SK_ARRAY_COUNT(gTrimMap) - 1)]); in parse_fill_stroke()
/third_party/skia/modules/androidkit/src/
H A DColorFilters.cpp51 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_ColorFilter()
62 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_MatrixColorFilter()
73 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_HSLAMatrixColorFilter()
84 ? env->RegisterNatives(clazz, methods, SK_ARRAY_COUNT(methods)) in register_androidkit_ComposeColorFilter()

Completed in 11 milliseconds

12345678910>>...23