Lines Matching refs:textData

405 int SkPaint::textToGlyphs(const void* textData, size_t byteLength, uint16_t glyphs[]) const {  in textToGlyphs()  argument
410 SkASSERT(textData != nullptr); in textToGlyphs()
415 return SkUTF8_CountUnichars((const char*)textData, byteLength); in textToGlyphs()
417 return SkUTF16_CountUnichars((const uint16_t*)textData, SkToInt(byteLength >> 1)); in textToGlyphs()
433 memcpy(glyphs, textData, byteLength >> 1 << 1); in textToGlyphs()
440 const char* text = (const char*)textData; in textToGlyphs()
476 bool SkPaint::containsText(const void* textData, size_t byteLength) const { in containsText() argument
481 SkASSERT(textData != nullptr); in containsText()
485 const uint16_t* glyphID = static_cast<const uint16_t*>(textData); in containsText()
500 const char* text = static_cast<const char*>(textData); in containsText()
510 const uint16_t* text = static_cast<const uint16_t*>(textData); in containsText()
520 const int32_t* text = static_cast<const int32_t*>(textData); in containsText()
536 void SkPaint::glyphsToUnichars(const uint16_t glyphs[], int count, SkUnichar textData[]) const { in glyphsToUnichars()
542 SkASSERT(textData != nullptr); in glyphsToUnichars()
549 textData[index] = cache->glyphToUnichar(glyphs[index]); in glyphsToUnichars()
803 SkScalar SkPaint::measureText(const void* textData, size_t length, SkRect* bounds) const { in measureText() argument
804 const char* text = (const char*)textData; in measureText()
955 int SkPaint::getTextWidths(const void* textData, size_t byteLength, in getTextWidths() argument
961 SkASSERT(textData); in getTextWidths()
964 return this->countText(textData, byteLength); in getTextWidths()
977 const char* text = (const char*)textData; in getTextWidths()
1060 void SkPaint::getTextPath(const void* textData, size_t length, in getTextPath() argument
1062 SkASSERT(length == 0 || textData != nullptr); in getTextPath()
1064 const char* text = (const char*)textData; in getTextPath()
1088 void SkPaint::getPosTextPath(const void* textData, size_t length, in getPosTextPath() argument
1090 SkASSERT(length == 0 || textData != nullptr); in getPosTextPath()
1092 const char* text = (const char*)textData; in getPosTextPath()
1141 int SkPaint::getTextIntercepts(const void* textData, size_t length, in getTextIntercepts() argument
1146 *this, textData, length, bounds, array, [&x, &y] (int) -> SkPoint { in getTextIntercepts()
1151 int SkPaint::getPosTextIntercepts(const void* textData, size_t length, const SkPoint pos[], in getPosTextIntercepts() argument
1155 *this, textData, length, bounds, array, [&pos] (int i) -> SkPoint { in getPosTextIntercepts()
1160 int SkPaint::getPosTextHIntercepts(const void* textData, size_t length, const SkScalar xpos[], in getPosTextHIntercepts() argument
1165 *this, textData, length, bounds, array, [&xpos, &constY] (int i) -> SkPoint { in getPosTextHIntercepts()