/external/skia/tests/ |
D | DeviceLooperTest.cpp | 29 } gRec[] = { variable 42 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in test_simple() 44 make_pm(&pmap, gRec[i].fDevSize.width(), gRec[i].fDevSize.height()); in test_simple() 46 SkRasterClip rc(gRec[i].fRCBounds); in test_simple() 49 SkDeviceLooper looper(pmap, rc, gRec[i].fRect, SkToBool(aa)); in test_simple() 103 } const gRec[] = { in test_complex() local 108 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in test_complex() 109 const int w = gRec[i].fSize.width(); in test_complex() 110 const int h = gRec[i].fSize.height(); in test_complex() 128 SkDeviceLooper looper(pmap, rc, rect, gRec[i].fAA); in test_complex()
|
D | Point3Test.cpp | 119 } gRec[] = { in DEF_TEST() local 126 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 127 test_length(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST() 128 test_normalize(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST()
|
D | BitmapGetColorTest.cpp | 18 } gRec[] = { in DEF_TEST() local 35 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST() 36 SkImageInfo info = SkImageInfo::Make(2, 2, gRec[i].fColorType, in DEF_TEST() 43 bm.eraseArea(area, gRec[i].fInColor); in DEF_TEST() 46 REPORTER_ASSERT(reporter, c == gRec[i].fOutColor); in DEF_TEST()
|
D | PointTest.cpp | 126 } gRec[] = { in DEF_TEST() local 131 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 132 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 | BitmapCopyTest.cpp | 625 } gRec[] = { in DEF_TEST() local 633 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 636 dstInfo = dstInfo.makeWH(gRec[i].fRequestedDstSize.width(), in DEF_TEST() 637 gRec[i].fRequestedDstSize.height()); in DEF_TEST() 639 gRec[i].fRequestedSrcLoc.x(), gRec[i].fRequestedSrcLoc.y()); in DEF_TEST() 641 REPORTER_ASSERT(reporter, gRec[i].fExpectedSuccess == success); in DEF_TEST() 643 const SkIRect srcR = gRec[i].fExpectedSrcR; in DEF_TEST() 644 const int dstX = gRec[i].fExpectedDstLoc.x(); in DEF_TEST() 645 const int dstY = gRec[i].fExpectedDstLoc.y(); in DEF_TEST()
|
D | StringTest.cpp | 161 } gRec[] = { in DEF_TEST() local 174 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST() 176 a.appendScalar(gRec[i].fValue); in DEF_TEST() 178 if (!a.equals(gRec[i].fString)) { in DEF_TEST() 179 ERRORF(reporter, "received <%s> expected <%s>\n", a.c_str(), gRec[i].fString); in DEF_TEST()
|
D | PaintTest.cpp | 75 } gRec[] = { in DEF_TEST() local 94 for (size_t k = 0; k < SK_ARRAY_COUNT(gRec); ++k) { in DEF_TEST() 95 paint.setTextEncoding(gRec[k].fEncoding); in DEF_TEST() 97 size_t len = gRec[k].fSeedTextProc(src, dst, NGLYPHS); in DEF_TEST()
|
D | PathTest.cpp | 1580 } gRec[] = { in test_convexity() local 1591 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in test_convexity() 1593 setFromString(&path, gRec[i].fPathStr); in test_convexity() 1594 check_convexity(reporter, path, gRec[i].fExpectedConvexity); in test_convexity() 1595 check_direction(reporter, path, gRec[i].fExpectedDirection); in test_convexity() 1597 if (kDontCheckDir != gRec[i].fExpectedDirection) { in test_convexity() 1601 … REPORTER_ASSERT(reporter, (gRec[i].fExpectedDirection == SkPathPriv::kUnknown_FirstDirection) in test_convexity() 1603 REPORTER_ASSERT(reporter, !foundDir || gRec[i].fExpectedDirection == dir); in test_convexity() 1604 check_convexity(reporter, copy, gRec[i].fExpectedConvexity); in test_convexity() 1606 REPORTER_ASSERT(reporter, gRec[i].fExpectedConvexity == path.getConvexity()); in test_convexity() [all …]
|
/external/skia/gm/ |
D | shadows.cpp | 81 } gRec[] = { in onDraw() local 95 setup(&paint, gRec[0].fColor, gRec[0].fStrokeWidth); in onDraw() 99 setup(&paint, gRec[1].fColor, gRec[1].fStrokeWidth); in onDraw() 103 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/skia/samplecode/ |
D | SampleAAClip.cpp | 30 } gRec[] = { variable 37 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in testop() 38 testop(gRec[i].r0, gRec[i].r1, gRec[i].op, gRec[i].expectedR); in testop()
|
D | SampleStrokePath.cpp | 90 } gRec[] = { variable 138 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in drawSet() 139 paint->setStyle(gRec[i].fStyle); in drawSet() 140 paint->setStrokeJoin(gRec[i].fJoin); in drawSet() 141 paint->setStrokeWidth(SkIntToScalar(gRec[i].fStrokeWidth)); in drawSet()
|
/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/skia/bench/ |
D | FontCacheBench.cpp | 70 } gRec[] = { variable 121 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in onDraw() 127 collisions += count_collisions(array, count, gRec[i].fHasher, hashMask); in onDraw() 132 collisions * 100.0 / glyphs, gRec[i].fName); in onDraw()
|
D | SortBench.cpp | 59 } gRec[] = { variable 109 fName.printf("sort_%s_%s", gSorts[s].fName, gRec[t].fName); in SortBench() 124 gRec[fType].fProc(fUnsorted.get()); in onDelayedSetup()
|
D | MathBench.cpp | 233 } gRec[] = { variable 272 fProc = gRec[index].fProc; in IsFiniteBench() 273 fName = gRec[index].fName; in IsFiniteBench()
|