/third_party/flutter/skia/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 | 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 | 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()
|
/third_party/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 | 181 } gRec[] = { in DEF_TEST() local 189 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST() 192 dstInfo = dstInfo.makeDimensions(gRec[i].fRequestedDstSize); in DEF_TEST() 194 gRec[i].fRequestedSrcLoc.x(), gRec[i].fRequestedSrcLoc.y()); in DEF_TEST() 196 REPORTER_ASSERT(reporter, gRec[i].fExpectedSuccess == success); in DEF_TEST() 198 const SkIRect srcR = gRec[i].fExpectedSrcR; in DEF_TEST() 199 const int dstX = gRec[i].fExpectedDstLoc.x(); in DEF_TEST() 200 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()
|
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()
|
/third_party/flutter/skia/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 133 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in drawSet() 134 paint->setStyle(gRec[i].fStyle); in drawSet() 135 paint->setStrokeJoin(gRec[i].fJoin); in drawSet() 136 paint->setStrokeWidth(SkIntToScalar(gRec[i].fStrokeWidth)); in drawSet()
|
/third_party/flutter/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()
|
/third_party/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()
|
/third_party/flutter/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()
|
/third_party/flutter/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 | 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()
|
D | MathBench.cpp | 233 } gRec[] = { variable 272 fProc = gRec[index].fProc; in IsFiniteBench() 273 fName = gRec[index].fName; in IsFiniteBench()
|
/third_party/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()
|
D | MathBench.cpp | 233 } gRec[] = { variable 272 fProc = gRec[index].fProc; in IsFiniteBench() 273 fName = gRec[index].fName; in IsFiniteBench()
|
/third_party/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()
|