Home
last modified time | relevance | path

Searched refs:gRec (Results 1 – 25 of 27) sorted by relevance

12

/third_party/flutter/skia/tests/
DBitmapCopyTest.cpp184 } 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()
DPoint3Test.cpp132 } 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()
DBitmapGetColorTest.cpp20 } 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()
DPointTest.cpp131 } 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()
DParsePathTest.cpp33 } 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()
DStringTest.cpp145 } 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/
DPoint3Test.cpp132 } 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()
DBitmapGetColorTest.cpp20 } 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()
DBitmapCopyTest.cpp181 } 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()
DPointTest.cpp131 } 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()
DParsePathTest.cpp33 } 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()
DBRDTest.cpp22 } gRec[] = { in DEF_TEST() local
35 for (const auto& rec : gRec) { in DEF_TEST()
DStringTest.cpp143 } 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/
DSampleAAClip.cpp29 } 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()
DSampleStrokePath.cpp92 } 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/
Dalphagradients.cpp53 } 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/
Dalphagradients.cpp53 } 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/
Dskhello.cpp87 } 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/
DFontCacheBench.cpp72 } 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()
DSortBench.cpp60 } gRec[] = { variable
115 fName.printf("sort_%s_%s", gSorts[s].fName, gRec[t].fName); in SortBench()
130 gRec[fType].fProc(fUnsorted.get()); in onDelayedSetup()
DMathBench.cpp233 } gRec[] = { variable
272 fProc = gRec[index].fProc; in IsFiniteBench()
273 fName = gRec[index].fName; in IsFiniteBench()
/third_party/skia/bench/
DFontCacheBench.cpp72 } 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()
DSortBench.cpp61 } gRec[] = { variable
115 fName.printf("sort_%s_%s", gSorts[s].fName, gRec[t].fName); in SortBench()
130 gRec[fType].fProc(fUnsorted.get()); in onDelayedSetup()
DMathBench.cpp233 } gRec[] = { variable
272 fProc = gRec[index].fProc; in IsFiniteBench()
273 fName = gRec[index].fName; in IsFiniteBench()
/third_party/skia/samplecode/
DSampleStrokePath.cpp90 } 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()

12