/third_party/skia/tests/ |
H A 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[ in DEF_TEST() [all...] |
H A 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()
|
H A D | BitmapCopyTest.cpp | 181 } gRec[] = { 189 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { 192 dstInfo = dstInfo.makeDimensions(gRec[i].fRequestedDstSize); 194 gRec[i].fRequestedSrcLoc.x(), gRec[i].fRequestedSrcLoc.y()); 196 REPORTER_ASSERT(reporter, gRec[i].fExpectedSuccess == success); 198 const SkIRect srcR = gRec[i].fExpectedSrcR; 199 const int dstX = gRec[i].fExpectedDstLoc.x(); 200 const int dstY = gRec[i].fExpectedDstLoc.y();
|
H A 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()
|
H A 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()
|
H A D | BRDTest.cpp | 22 } gRec[] = { in DEF_TEST() local 35 for (const auto& rec : gRec) { in DEF_TEST()
|
H A D | StringTest.cpp | 143 } gRec[] = { in DEF_TEST() local 160 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST() 162 a.appendScalar(gRec[i].fValue); in DEF_TEST() 164 if (!a.equals(gRec[i].fString)) { in DEF_TEST() 165 ERRORF(reporter, "received <%s> expected <%s>\n", a.c_str(), gRec[i].fString); in DEF_TEST()
|
H A D | PathTest.cpp | 1583 } gRec[] = { in test_convexity() local 1594 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in test_convexity() 1596 setFromString(&path, gRec[i].fPathStr); in test_convexity() 1597 check_convexity(reporter, path, gRec[i].fExpectedIsConvex); in test_convexity() 1598 check_direction(reporter, path, gRec[i].fExpectedDirection); in test_convexity() 1600 if (kDontCheckDir != gRec[i].fExpectedDirection) { in test_convexity() 1605 REPORTER_ASSERT(reporter, (gRec[i].fExpectedDirection == SkPathFirstDirection::kUnknown) in test_convexity() 1607 REPORTER_ASSERT(reporter, !foundDir || gRec[i].fExpectedDirection == dir); in test_convexity() 1608 check_convexity(reporter, copy, gRec[i].fExpectedIsConvex); in test_convexity() 1610 REPORTER_ASSERT(reporter, gRec[ in test_convexity() [all...] |
/third_party/skia/gm/ |
H A D | alphagradients.cpp | 53 } gRec[] = { variable 74 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { 75 draw_grad(canvas, r, gRec[i].fColor0, gRec[i].fColor1, SkToBool(doPreMul));
|
/third_party/skia/samplecode/ |
H A 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()
|
/third_party/skia/bench/ |
H A D | FontCacheBench.cpp | 72 } gRec[] = { variable 123 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { 129 collisions += count_collisions(array, count, gRec[i].fHasher, hashMask); 134 collisions * 100.0 / glyphs, gRec[i].fName);
|
H A 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());
|
H A D | MathBench.cpp | 233 } gRec[] = { variable 272 fProc = gRec[index].fProc; in IsFiniteBench() 273 fName = gRec[index].fName; in IsFiniteBench()
|