Searched refs:NGLYPHS (Results 1 – 2 of 2) sorted by relevance
/external/skia/bench/ |
D | CmapBench.cpp | 14 NGLYPHS = 100 enumerator 35 uint16_t glyphs[NGLYPHS]; in textToGlyphs_proc() 36 SkASSERT(glyphCount <= NGLYPHS); in textToGlyphs_proc() 46 uint16_t glyphs[NGLYPHS]; in charsToGlyphs_proc() 47 SkASSERT(glyphCount <= NGLYPHS); in charsToGlyphs_proc() 68 char fText[NGLYPHS]; 76 for (int i = 0; i < NGLYPHS; ++i) { in CMAPBench() 89 fProc(loops, fPaint, fText, sizeof(fText), NGLYPHS); in onDraw()
|
/external/skia/tests/ |
D | PaintTest.cpp | 61 static const int NGLYPHS = 64; in test_cmap() local 63 SkUnichar src[NGLYPHS]; in test_cmap() 64 SkUnichar dst[NGLYPHS]; // used for utf8, utf16, utf32 storage in test_cmap() 82 for (int j = 0; j < NGLYPHS; ++j) { in test_cmap() 91 size_t len = gRec[k].fSeedTextProc(src, dst, NGLYPHS); in test_cmap() 93 uint16_t glyphs0[NGLYPHS], glyphs1[NGLYPHS]; in test_cmap() 97 int first = face->charsToGlyphs(dst, paint2encoding(paint), glyphs1, NGLYPHS); in test_cmap() 98 int index = find_first_zero(glyphs1, NGLYPHS); in test_cmap() 100 REPORTER_ASSERT(reporter, NGLYPHS == nglyphs); in test_cmap() 103 !memcmp(glyphs0, glyphs1, NGLYPHS * sizeof(uint16_t))); in test_cmap() [all …]
|