Home
last modified time | relevance | path

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

12

/external/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.cpp184 } gRec[] = { in DEF_TEST() local
192 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { in DEF_TEST()
195 dstInfo = dstInfo.makeDimensions(gRec[i].fRequestedDstSize); in DEF_TEST()
197 gRec[i].fRequestedSrcLoc.x(), gRec[i].fRequestedSrcLoc.y()); in DEF_TEST()
199 REPORTER_ASSERT(reporter, gRec[i].fExpectedSuccess == success); in DEF_TEST()
201 const SkIRect srcR = gRec[i].fExpectedSrcR; in DEF_TEST()
202 const int dstX = gRec[i].fExpectedDstLoc.x(); in DEF_TEST()
203 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()
DStringTest.cpp142 } gRec[] = { in DEF_TEST() local
155 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { in DEF_TEST()
157 a.appendScalar(gRec[i].fValue); in DEF_TEST()
159 if (!a.equals(gRec[i].fString)) { in DEF_TEST()
160 ERRORF(reporter, "received <%s> expected <%s>\n", a.c_str(), gRec[i].fString); in DEF_TEST()
/external/skqp/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()
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()
DPointTest.cpp144 } 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()
DPaintTest.cpp72 } 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/skqp/gm/
Dshadows.cpp80 } 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()
Dalphagradients.cpp44 } 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/
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()
/external/skqp/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
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/
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()
/external/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()
/external/skqp/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()
/external/skqp/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()
/external/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()

12