/external/skqp/tests/ |
D | BitmapCopyTest.cpp | 184 } gRec[] = { in DEF_TEST() local 192 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 195 dstInfo = dstInfo.makeWH(gRec[i].fRequestedDstSize.width(), in DEF_TEST() 196 gRec[i].fRequestedDstSize.height()); in DEF_TEST() 198 gRec[i].fRequestedSrcLoc.x(), gRec[i].fRequestedSrcLoc.y()); in DEF_TEST() 200 REPORTER_ASSERT(reporter, gRec[i].fExpectedSuccess == success); in DEF_TEST() 202 const SkIRect srcR = gRec[i].fExpectedSrcR; in DEF_TEST() 203 const int dstX = gRec[i].fExpectedDstLoc.x(); in DEF_TEST() 204 const int dstY = gRec[i].fExpectedDstLoc.y(); in DEF_TEST()
|
D | Point3Test.cpp | 132 } gRec[] = { in DEF_TEST() local 139 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 140 test_length(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST() 141 test_normalize(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST()
|
D | BitmapGetColorTest.cpp | 20 } gRec[] = { in DEF_TEST() local 37 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST() 38 SkImageInfo info = SkImageInfo::Make(2, 2, gRec[i].fColorType, in DEF_TEST() 45 bm.eraseArea(area, gRec[i].fInColor); in DEF_TEST() 48 REPORTER_ASSERT(reporter, c == gRec[i].fOutColor); in DEF_TEST()
|
D | ParsePathTest.cpp | 33 } gRec[] = { variable 45 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST() 47 bool success = SkParsePath::FromSVGString(gRec[i].fStr, &path); in DEF_TEST() 49 const SkRect& expectedBounds = gRec[i].fBounds; in DEF_TEST()
|
D | PointTest.cpp | 144 } gRec[] = { in DEF_TEST() local 149 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 150 test_length(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fLength); in DEF_TEST()
|
D | StringTest.cpp | 145 } gRec[] = { in DEF_TEST() local 158 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST() 160 a.appendScalar(gRec[i].fValue); in DEF_TEST() 162 if (!a.equals(gRec[i].fString)) { in DEF_TEST() 163 ERRORF(reporter, "received <%s> expected <%s>\n", a.c_str(), gRec[i].fString); in DEF_TEST()
|
D | PaintTest.cpp | 72 } gRec[] = { in DEF_TEST() local 91 for (size_t k = 0; k < SK_ARRAY_COUNT(gRec); ++k) { in DEF_TEST() 92 size_t len = gRec[k].fSeedTextProc(src, dst, NGLYPHS); in DEF_TEST() 96 int nglyphs = font.textToGlyphs(dst, len, gRec[k].fEncoding, glyphs0, NGLYPHS); in DEF_TEST() 97 int first = face->charsToGlyphs(dst, (SkTypeface::Encoding)gRec[k].fEncoding, in DEF_TEST()
|
/external/skia/tests/ |
D | Point3Test.cpp | 132 } gRec[] = { in DEF_TEST() local 139 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 140 test_length(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST() 141 test_normalize(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST()
|
D | BitmapGetColorTest.cpp | 20 } gRec[] = { in DEF_TEST() local 37 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST() 38 SkImageInfo info = SkImageInfo::Make(2, 2, gRec[i].fColorType, in DEF_TEST() 45 bm.eraseArea(area, gRec[i].fInColor); in DEF_TEST() 48 REPORTER_ASSERT(reporter, c == gRec[i].fOutColor); in DEF_TEST()
|
D | BitmapCopyTest.cpp | 180 } gRec[] = { in DEF_TEST() local 188 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 191 dstInfo = dstInfo.makeDimensions(gRec[i].fRequestedDstSize); in DEF_TEST() 193 gRec[i].fRequestedSrcLoc.x(), gRec[i].fRequestedSrcLoc.y()); in DEF_TEST() 195 REPORTER_ASSERT(reporter, gRec[i].fExpectedSuccess == success); in DEF_TEST() 197 const SkIRect srcR = gRec[i].fExpectedSrcR; in DEF_TEST() 198 const int dstX = gRec[i].fExpectedDstLoc.x(); in DEF_TEST() 199 const int dstY = gRec[i].fExpectedDstLoc.y(); in DEF_TEST()
|
D | PointTest.cpp | 131 } gRec[] = { in DEF_TEST() local 136 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 137 test_length(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fLength); in DEF_TEST()
|
D | ParsePathTest.cpp | 33 } gRec[] = { variable 45 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST() 47 bool success = SkParsePath::FromSVGString(gRec[i].fStr, &path); in DEF_TEST() 49 const SkRect& expectedBounds = gRec[i].fBounds; in DEF_TEST()
|
D | BRDTest.cpp | 22 } gRec[] = { in DEF_TEST() local 35 for (const auto& rec : gRec) { in DEF_TEST()
|
/external/skqp/gm/ |
D | shadows.cpp | 80 } gRec[] = { in onDraw() local 94 setup(&paint, gRec[0].fColor, gRec[0].fStrokeWidth); in onDraw() 98 setup(&paint, gRec[1].fColor, gRec[1].fStrokeWidth); in onDraw() 102 setup(&paint, gRec[2].fColor, gRec[2].fStrokeWidth); in onDraw()
|
D | alphagradients.cpp | 44 } gRec[] = { in onDraw() local 65 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in onDraw() 66 draw_grad(canvas, r, gRec[i].fColor0, gRec[i].fColor1, SkToBool(doPreMul)); in onDraw()
|
/external/skqp/samplecode/ |
D | SampleAAClip.cpp | 29 } gRec[] = { variable 36 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in testop() 37 testop(gRec[i].r0, gRec[i].r1, gRec[i].op, gRec[i].expectedR); in testop()
|
D | SampleStrokePath.cpp | 92 } gRec[] = { variable 139 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in drawSet() 140 paint->setStyle(gRec[i].fStyle); in drawSet() 141 paint->setStrokeJoin(gRec[i].fJoin); in drawSet() 142 paint->setStrokeWidth(SkIntToScalar(gRec[i].fStrokeWidth)); in drawSet()
|
/external/skia/gm/ |
D | alphagradients.cpp | 53 } gRec[] = { in onDraw() local 74 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in onDraw() 75 draw_grad(canvas, r, gRec[i].fColor0, gRec[i].fColor1, SkToBool(doPreMul)); in onDraw()
|
/external/skqp/tools/ |
D | skhello.cpp | 87 } gRec[] = { in main() local 92 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in main() 94 file.printf("%s%s", path.c_str(), gRec[i].fSuffix); in main() 95 if (!gRec[i].fProc(w, h, file.c_str(), text.c_str(), paint)) { in main()
|
/external/skia/tools/ |
D | skhello.cpp | 87 } gRec[] = { in main() local 92 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in main() 94 file.printf("%s%s", path.c_str(), gRec[i].fSuffix); in main() 95 if (!gRec[i].fProc(w, h, file.c_str(), text.c_str(), paint)) { in main()
|
/external/skqp/bench/ |
D | FontCacheBench.cpp | 72 } gRec[] = { variable 123 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in onDraw() 129 collisions += count_collisions(array, count, gRec[i].fHasher, hashMask); in onDraw() 134 collisions * 100.0 / glyphs, gRec[i].fName); in onDraw()
|
D | SortBench.cpp | 60 } gRec[] = { variable 115 fName.printf("sort_%s_%s", gSorts[s].fName, gRec[t].fName); in SortBench() 130 gRec[fType].fProc(fUnsorted.get()); in onDelayedSetup()
|
/external/skia/bench/ |
D | FontCacheBench.cpp | 72 } gRec[] = { variable 123 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in onDraw() 129 collisions += count_collisions(array, count, gRec[i].fHasher, hashMask); in onDraw() 134 collisions * 100.0 / glyphs, gRec[i].fName); in onDraw()
|
D | SortBench.cpp | 61 } gRec[] = { variable 115 fName.printf("sort_%s_%s", gSorts[s].fName, gRec[t].fName); in SortBench() 130 gRec[fType].fProc(fUnsorted.get()); in onDelayedSetup()
|
/external/skia/samplecode/ |
D | SampleStrokePath.cpp | 90 } gRec[] = { variable 131 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in drawSet() 132 paint->setStyle(gRec[i].fStyle); in drawSet() 133 paint->setStrokeJoin(gRec[i].fJoin); in drawSet() 134 paint->setStrokeWidth(SkIntToScalar(gRec[i].fStrokeWidth)); in drawSet()
|