/external/skia/tests/ |
D | WArrayTest.cpp | 175 TestWData(reporter, data1, SK_ARRAY_COUNT(data1), nullptr, 0, expected1); in DEF_TEST() 176 TestWData(reporter, data2, SK_ARRAY_COUNT(data2), nullptr, 0, expected2); in DEF_TEST() 177 TestWData(reporter, data3, SK_ARRAY_COUNT(data3), nullptr, 0, expected3); in DEF_TEST() 178 TestWData(reporter, data4, SK_ARRAY_COUNT(data4), nullptr, 0, expected4); in DEF_TEST() 179 TestWData(reporter, data5, SK_ARRAY_COUNT(data5), nullptr, 0, expected5); in DEF_TEST() 180 TestWData(reporter, data6, SK_ARRAY_COUNT(data6), nullptr, 0, expected6); in DEF_TEST() 181 TestWData(reporter, data7, SK_ARRAY_COUNT(data7), nullptr, 0, expected7); in DEF_TEST() 182 TestWData(reporter, data7, SK_ARRAY_COUNT(data7), subset7, in DEF_TEST() 183 SK_ARRAY_COUNT(subset7), expectedSubset7); in DEF_TEST() 184 TestWData(reporter, data8, SK_ARRAY_COUNT(data8), nullptr, 0, expected8); in DEF_TEST() [all …]
|
D | ScalarTest.cpp | 60 { 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 …]
|
D | PathOpsCubicIntersectionTestData.cpp | 46 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);
|
D | TArrayTest.cpp | 41 a.reset(b, SK_ARRAY_COUNT(b)); in TestTSet_basic() 42 REPORTER_ASSERT(reporter, a.count() == SK_ARRAY_COUNT(b)); in TestTSet_basic() 48 REPORTER_ASSERT(reporter, a.count() == SK_ARRAY_COUNT(b) - 1); in TestTSet_basic() 53 REPORTER_ASSERT(reporter, a.count() == SK_ARRAY_COUNT(b) - 2); in TestTSet_basic() 77 for (size_t arrayA = 0; arrayA < SK_ARRAY_COUNT(arrayMakers); ++arrayA) { in test_swap() 78 for (size_t arrayB = arrayA; arrayB < SK_ARRAY_COUNT(arrayMakers); ++arrayB) { in test_swap() 79 for (size_t dataSizeA = 0; dataSizeA < SK_ARRAY_COUNT(kSizes); ++dataSizeA) { in test_swap() 80 for (size_t dataSizeB = 0; dataSizeB < SK_ARRAY_COUNT(kSizes); ++dataSizeB) { in test_swap()
|
D | PackBitsTest.cpp | 29 { 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()
|
D | PathOpsQuadIntersectionTestData.cpp | 17 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);
|
D | TextBlobTest.cpp | 28 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()
|
/external/skia/gm/ |
D | polygons.cpp | 50 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 …]
|
D | convex_all_line_paths.cpp | 154 SK_ARRAY_COUNT(gPoints0), in GetPath() 155 SK_ARRAY_COUNT(gPoints1), in GetPath() 156 SK_ARRAY_COUNT(gPoints2), in GetPath() 157 SK_ARRAY_COUNT(gPoints3), in GetPath() 158 SK_ARRAY_COUNT(gPoints4), in GetPath() 159 SK_ARRAY_COUNT(gPoints5), in GetPath() 160 SK_ARRAY_COUNT(gPoints6), in GetPath() 161 SK_ARRAY_COUNT(gPoints7), in GetPath() 162 SK_ARRAY_COUNT(gPoints8), in GetPath() 163 SK_ARRAY_COUNT(gPoints9), in GetPath() [all …]
|
D | tilemodes.cpp | 31 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode))->unref(); in makebm() 53 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)]; 74 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onOnceBeforeDraw() 96 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw() 97 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw() 114 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDraw() 115 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilters); j++) { in onDraw() 117 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw() 118 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw() 174 return SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad() [all …]
|
D | tilemodes_scaled.cpp | 31 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode))->unref(); in makebm() 53 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)]; 73 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onOnceBeforeDraw() 100 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw() 101 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw() 117 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDraw() 118 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilterQualitys); j++) { in onDraw() 120 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDraw() 121 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDraw() 178 return SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad() [all …]
|
D | shadertext.cpp | 28 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode))->unref(); in makebm() 104 const int textLen = SK_ARRAY_COUNT(text) - 1; in onDraw() 122 static const int gradCount = SK_ARRAY_COUNT(gGradData) * in onDraw() 123 SK_ARRAY_COUNT(gGradMakers); in onDraw() 124 static const int bmpCount = SK_ARRAY_COUNT(tileModes) * in onDraw() 125 SK_ARRAY_COUNT(tileModes); in onDraw() 129 for (size_t d = 0; d < SK_ARRAY_COUNT(gGradData); ++d) { in onDraw() 130 for (size_t m = 0; m < SK_ARRAY_COUNT(gGradMakers); ++m) { in onDraw() 139 for (size_t tx = 0; tx < SK_ARRAY_COUNT(tileModes); ++tx) { in onDraw() 140 for (size_t ty = 0; ty < SK_ARRAY_COUNT(tileModes); ++ty) { in onDraw() [all …]
|
D | anisotropic.cpp | 64 SkASSERT(kNumVertImages-1 == (int)SK_ARRAY_COUNT(gScales)/2); in onDraw() 67 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw() 71 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw() 75 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height; in onDraw() 82 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw() 86 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw() 92 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fBM.height() + kSpacer); in onDraw()
|
D | blurrect.cpp | 79 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 …]
|
D | gammatext.cpp | 18 SK_ARRAY_COUNT(bw), in make_heatGradient() 83 for (size_t i = 0; i < SK_ARRAY_COUNT(fg); ++i) { in onDraw() 92 x += SkIntToScalar(1024) / SK_ARRAY_COUNT(fg); in onDraw() 136 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in GammaShaderTextGM() 143 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in ~GammaShaderTextGM() 158 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onOnceBeforeDraw() 170 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onDraw()
|
D | vertices.cpp | 21 SK_ARRAY_COUNT(colors), in make_shader() 60 for (size_t i = 0; i < SK_ARRAY_COUNT(fColors); ++i) { in onOnceBeforeDraw() 104 for (size_t j = 0; j < SK_ARRAY_COUNT(modes); ++j) { in onDraw() 107 for (size_t i = 0; i < SK_ARRAY_COUNT(rec); ++i) { in onDraw() 109 SK_ARRAY_COUNT(fPts), fPts, in onDraw() 111 xfer, fan, SK_ARRAY_COUNT(fan), paint); in onDraw()
|
/external/skia/tools/ |
D | test_font_data.cpp | 479 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 …]
|
D | test_font_serif.cpp | 1264 const int LiberationSerifNormalCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSerifNormalCharCodes… 2514 const int LiberationSerifBoldCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSerifBoldCharCodes); 3832 const int LiberationSerifItalicCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSerifItalicCharCodes… 5144 const int LiberationSerifBoldItalicCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSerifBoldItalicC…
|
D | test_font_sans_serif.cpp | 1187 const int LiberationSansNormalCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSansNormalCharCodes); 2351 const int LiberationSansBoldCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSansBoldCharCodes); 3592 const int LiberationSansItalicCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSansItalicCharCodes); 4852 const int LiberationSansBoldItalicCharCodesCount = (int) SK_ARRAY_COUNT(LiberationSansBoldItalicCha…
|
D | test_font_monospace.cpp | 1193 const int LiberationMonoNormalCharCodesCount = (int) SK_ARRAY_COUNT(LiberationMonoNormalCharCodes); 2343 const int LiberationMonoBoldCharCodesCount = (int) SK_ARRAY_COUNT(LiberationMonoBoldCharCodes); 3609 const int LiberationMonoItalicCharCodesCount = (int) SK_ARRAY_COUNT(LiberationMonoItalicCharCodes); 4842 const int LiberationMonoBoldItalicCharCodesCount = (int) SK_ARRAY_COUNT(LiberationMonoBoldItalicCha…
|
/external/skia/samplecode/ |
D | SampleSubpixelTranslate.cpp | 77 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent() 83 …canvas->drawText( "AA Scaled", strlen("AA Scaled"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSiz… in onDrawContent() 86 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent() 91 …canvas->drawText( "Scaled", strlen("Scaled"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSize + 10… in onDrawContent() 94 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent() 99 …canvas->drawText( "AA No Scale", strlen("AA No Scale"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (… in onDrawContent() 102 for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) { in onDrawContent() 107 …canvas->drawText( "No Scale", strlen("No Scale"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.wi… in onDrawContent()
|
D | SampleTiling.cpp | 39 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode))->unref(); in makebm() 65 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in TilingView() 73 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)]; 106 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDrawContent() 107 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDrawContent() 125 for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { in onDrawContent() 126 for (size_t j = 0; j < SK_ARRAY_COUNT(gFilters); j++) { in onDrawContent() 128 for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { in onDrawContent() 129 for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { in onDrawContent()
|
D | SampleShaderText.cpp | 27 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode))->unref(); 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 …]
|
D | SampleEffects.cpp | 43 paint->setShader(SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in paint_proc3() 66 SkPaint fPaint[SK_ARRAY_COUNT(gPaintProcs)]; 80 for (i = 2; i < SK_ARRAY_COUNT(pts); i += 2) { in EffectsView() 84 for (i = 0; i < SK_ARRAY_COUNT(gPaintProcs); i++) { in EffectsView() 110 for (size_t i = 0; i < SK_ARRAY_COUNT(fPaint); i++) { in onDrawContent()
|
/external/skia/src/gpu/ |
D | GrTestUtils.cpp | 36 uint32_t count = static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)); in test_matrix() 66 for (size_t i = 0; i < SK_ARRAY_COUNT(gMatrices); i++) { in TestMatrixPreservesRightAngles() 70 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles() 92 for (size_t i = 0; i < SK_ARRAY_COUNT(gMatrices); i++) { in TestMatrixRectStaysRect() 96 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect() 113 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect() 125 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare() 139 for (size_t i = 0; i < SK_ARRAY_COUNT(gRRect); i++) { in TestRRectSimple() 143 return gRRect[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRRect)))]; in TestRRectSimple() 184 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPath() [all …]
|