HomeSort by relevance Sort by last modified time
    Searched refs:glyphCount (Results 1 - 25 of 126) sorted by null

1 2 3 4 5 6

  /external/skqp/modules/skshaper/src/
SkShaper.cpp 14 int glyphCount,
16 const auto& runBuffer = SkTextBlobBuilderPriv::AllocRunTextPos(&fBuilder, font, glyphCount,
SkShaper_primitive.cpp 46 int glyphCount = font.countText(utf8text, textBytes, SkTextEncoding::kUTF8);
47 if (glyphCount <= 0) {
62 const auto buffer = handler->newRunBuffer(info, font, glyphCount, textBytes);
64 glyphCount) == glyphCount);
65 font.getPos(buffer.glyphs, glyphCount, buffer.positions, point);
73 for (int i = 0; i < glyphCount; ++i) {
  /external/skia/bench/
CmapBench.cpp 18 int glyphCount);
21 int glyphCount) {
23 SkASSERT(glyphCount <= NGLYPHS);
31 size_t len, int glyphCount) {
33 SkASSERT(glyphCount <= NGLYPHS);
37 face->charsToGlyphs(text, SkTypeface::kUTF8_Encoding, glyphs, glyphCount);
42 size_t len, int glyphCount) {
45 face->charsToGlyphs(text, SkTypeface::kUTF8_Encoding, nullptr, glyphCount);
  /external/skqp/bench/
CmapBench.cpp 18 int glyphCount);
21 int glyphCount) {
23 SkASSERT(glyphCount <= NGLYPHS);
31 size_t len, int glyphCount) {
33 SkASSERT(glyphCount <= NGLYPHS);
37 face->charsToGlyphs(text, SkTypeface::kUTF8_Encoding, glyphs, glyphCount);
42 size_t len, int glyphCount) {
45 face->charsToGlyphs(text, SkTypeface::kUTF8_Encoding, nullptr, glyphCount);
  /external/icu/icu4c/source/test/perf/leperf/
leperf.cpp 28 le_int32 glyphCount;
46 le_int32 glyphCount = 0;
48 glyphCount = engine->layoutChars(chars, 0, params->charLen, params->charLen, TRUE, 0.0, 0.0, status);
49 glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount + 10);
50 indices = LE_NEW_ARRAY(le_int32, glyphCount + 10);
51 positions = LE_NEW_ARRAY(float, glyphCount + 10);
53 params->glyphCount = glyphCount;
118 u_printf("leperf: glyphs=%d\n", p.glyphCount);
xmlreader.cpp 187 int32_t glyphCount = 0, indexCount = 0, positionCount = 0;
232 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount);
236 expected.glyphCount = glyphCount;
238 if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) {
239 log_err("Test %s: inconsistent input data: charCount = %d, glyphCount = %d, indexCount = %d, positionCount = %d\n",
240 id, charCount, glyphCount, indexCount, positionCount);
  /external/skia/gm/
textblobshader.cpp 41 int glyphCount = fGlyphs.count();
44 run = &builder.allocRun(font, glyphCount, 10, 10, nullptr);
45 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
47 run = &builder.allocRunPosH(font, glyphCount, 80, nullptr);
48 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
49 for (int i = 0; i < glyphCount; ++i) {
53 run = &builder.allocRunPos(font, glyphCount, nullptr);
54 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
55 for (int i = 0; i < glyphCount; ++i) {
57 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount);
    [all...]
scaledemoji.cpp 23 int glyphCount = font.countText(text, len, enc);
24 const auto& buffer = builder.allocRunPosH(font, glyphCount, 0);
25 (void)font.textToGlyphs(text, len, enc, buffer.glyphs, glyphCount);
26 font.getXPos(buffer.glyphs, glyphCount, buffer.pos);
  /external/skqp/gm/
textblobshader.cpp 41 int glyphCount = fGlyphs.count();
44 run = &builder.allocRun(font, glyphCount, 10, 10, nullptr);
45 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
47 run = &builder.allocRunPosH(font, glyphCount, 80, nullptr);
48 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
49 for (int i = 0; i < glyphCount; ++i) {
53 run = &builder.allocRunPos(font, glyphCount, nullptr);
54 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
55 for (int i = 0; i < glyphCount; ++i) {
57 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount);
    [all...]
  /external/skia/modules/skshaper/src/
SkShaper.cpp 27 int glyphCount,
29 const auto& runBuffer = SkTextBlobBuilderPriv::AllocRunTextPos(&fBuilder, font, glyphCount,
35 fGlyphCount = glyphCount;
  /external/skia/tools/fonts/
SkTestEmptyTypeface.h 33 uint16_t glyphs[], int glyphCount) const override {
34 if (glyphs && glyphCount > 0) {
35 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0]));
  /external/skqp/tools/fonts/
SkTestEmptyTypeface.h 33 uint16_t glyphs[], int glyphCount) const override {
34 if (glyphs && glyphCount > 0) {
35 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0]));
  /external/skia/src/core/
SkTypeface_remote.h 52 int glyphCount,
59 , fGlyphCount{glyphCount}
63 int glyphCount() const {return fGlyphCount;}
127 uint16_t glyphs[], int glyphCount) const override {
132 return this->glyphCount();
SkTextBlob.cpp 38 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize,
43 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)),
44 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar));
53 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t)));
101 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe));
106 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount,
109 return safe->mul(glyphCount, ScalarsPerGlyph(positioning));
264 font.measureText(run.glyphBuffer(), run.glyphCount() * sizeof(uint16_t),
269 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount());
270 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr)
    [all...]
SkTextBlobPriv.h 100 uint32_t glyphCount() const {
154 static size_t StorageSize(uint32_t glyphCount, uint32_t textSize,
175 static size_t PosCount(uint32_t glyphCount,
217 uint32_t glyphCount() const {
219 return fCurrentRun->glyphCount();
  /external/skqp/src/core/
SkTypeface_remote.h 52 int glyphCount,
59 , fGlyphCount{glyphCount}
63 int glyphCount() const {return fGlyphCount;}
127 uint16_t glyphs[], int glyphCount) const override {
132 return this->glyphCount();
SkTextBlob.cpp 38 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize,
43 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)),
44 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar));
53 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t)));
101 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe));
106 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount,
109 return safe->mul(glyphCount, ScalarsPerGlyph(positioning));
264 font.measureText(run.glyphBuffer(), run.glyphCount() * sizeof(uint16_t),
269 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount());
270 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr)
    [all...]
  /external/icu/icu4c/source/test/letest/
letest.h 44 le_int32 glyphCount;
cletest.c 49 le_int32 glyphCount = 0;
59 glyphCount = le_getGlyphCount(engine, &status);
60 if (glyphCount != 0) {
61 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount);
64 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10);
65 indices = NEW_ARRAY(le_int32, glyphCount + 10);
66 positions = NEW_ARRAY(float, glyphCount + 10);
128 glyphCount = le_layoutChars(engine, NULL, 0, 0, 0, FALSE, 0.0, 0.0, &status);
135 glyphCount = le_layoutChars(engine, chars, -1, 6, 20, TRUE, 0.0, 0.0, &status);
142 glyphCount = le_layoutChars(engine, chars, 8, -1, 20, TRUE, 0.0, 0.0, &status)
    [all...]
letest.cpp 64 le_int32 glyphCount = 0;
66 glyphCount = engine->getGlyphCount();
67 if (glyphCount != 0) {
68 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount);
71 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10);
72 indices = NEW_ARRAY(le_int32, glyphCount + 10);
73 positions = NEW_ARRAY(float, glyphCount + 10);
149 glyphCount = engine->layoutChars(NULL, 0, 0, 0, FALSE, 0.0, 0.0, status);
162 glyphCount = engine->layoutChars(chars, -1, 6, 20, TRUE, 0.0, 0.0, status);
169 glyphCount = engine->layoutChars(chars, 8, -1, 20, TRUE, 0.0, 0.0, status)
    [all...]
xmlreader.cpp 183 int32_t glyphCount = 0, indexCount = 0, positionCount = 0;
228 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount);
232 expected.glyphCount = glyphCount;
234 if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) {
235 log_err("Test %s: inconsistent input data: charCount = %d, glyphCount = %d, indexCount = %d, positionCount = %d\n",
236 id, charCount, glyphCount, indexCount, positionCount);
  /external/skia/src/pdf/
SkClusterator.h 20 uint32_t glyphCount() const { return fGlyphCount; }
  /external/skqp/src/pdf/
SkClusterator.h 20 uint32_t glyphCount() const { return fGlyphCount; }
  /external/skia/tests/
TextBlobTest.cpp 162 const int glyphCount = font.countText(txt, txtLen, kUTF8_SkTextEncoding);
163 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCount);
165 font.textToGlyphs(txt, txtLen, kUTF8_SkTextEncoding, buffer.glyphs, glyphCount);
167 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2);
231 unsigned glyphCount = 0;
236 glyphCount += in[i].count;
250 REPORTER_ASSERT(reporter, out[i].count == it.glyphCount());
258 for (unsigned k = 0; k < it.glyphCount(); ++k) {
322 int glyphCount = font.countText(text1, strlen(text1), kUTF8_SkTextEncoding);
323 SkAutoTMalloc<uint16_t> glyphs(glyphCount);
    [all...]
  /external/skqp/tests/
TextBlobTest.cpp 162 const int glyphCount = font.countText(txt, txtLen, kUTF8_SkTextEncoding);
163 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCount);
165 font.textToGlyphs(txt, txtLen, kUTF8_SkTextEncoding, buffer.glyphs, glyphCount);
167 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2);
231 unsigned glyphCount = 0;
236 glyphCount += in[i].count;
250 REPORTER_ASSERT(reporter, out[i].count == it.glyphCount());
258 for (unsigned k = 0; k < it.glyphCount(); ++k) {
322 int glyphCount = font.countText(text1, strlen(text1), kUTF8_SkTextEncoding);
323 SkAutoTMalloc<uint16_t> glyphs(glyphCount);
    [all...]

Completed in 1106 milliseconds

1 2 3 4 5 6