@@ -63,7 +63,7 @@ const char* DisplayList::OP_NAMES[] = {
6363 " DrawPoints" ,
6464 " DrawTextOnPath" ,
6565 " DrawPosText" ,
66- " DrawGeneralText " ,
66+ " DrawText " ,
6767 " ResetShader" ,
6868 " SetupShader" ,
6969 " ResetColorFilter" ,
@@ -593,7 +593,7 @@ void DisplayList::output(OpenGLRenderer& renderer, uint32_t level) {
593593 text.text (), text.length (), count, paint);
594594 }
595595 break ;
596- case DrawGeneralText : {
596+ case DrawText : {
597597 getText (&text);
598598 int count = getInt ();
599599 int positionsCount = 0 ;
@@ -1221,7 +1221,7 @@ status_t DisplayList::replay(OpenGLRenderer& renderer, Rect& dirty, int32_t flag
12211221 positions, paint);
12221222 }
12231223 break ;
1224- case DrawGeneralText : {
1224+ case DrawText : {
12251225 getText (&text);
12261226 int32_t count = getInt ();
12271227 float x = getFloat ();
@@ -1232,7 +1232,7 @@ status_t DisplayList::replay(OpenGLRenderer& renderer, Rect& dirty, int32_t flag
12321232 float length = getFloat ();
12331233 DISPLAY_LIST_LOGD (" %s%s %s, %d, %d, %.2f, %.2f, %p, %.2f" , (char *) indent,
12341234 OP_NAMES[op], text.text (), text.length (), count, x, y, paint, length);
1235- drawGlStatus |= renderer.drawGeneralText (text.text (), text.length (), count,
1235+ drawGlStatus |= renderer.drawText (text.text (), text.length (), count,
12361236 x, y, positions, paint, length);
12371237 }
12381238 break ;
@@ -1712,7 +1712,7 @@ status_t DisplayListRenderer::drawPosText(const char* text, int bytesCount, int
17121712 return DrawGlInfo::kStatusDone ;
17131713}
17141714
1715- status_t DisplayListRenderer::drawGeneralText (const char * text, int bytesCount, int count,
1715+ status_t DisplayListRenderer::drawText (const char * text, int bytesCount, int count,
17161716 float x, float y, const float * positions, SkPaint* paint, float length) {
17171717 if (!text || count <= 0 ) return DrawGlInfo::kStatusDone ;
17181718
@@ -1733,7 +1733,7 @@ status_t DisplayListRenderer::drawGeneralText(const char* text, int bytesCount,
17331733 reject = quickReject (x, y + metrics.fTop , x + length, y + metrics.fBottom );
17341734 }
17351735
1736- uint32_t * location = addOp (DisplayList::DrawGeneralText , reject);
1736+ uint32_t * location = addOp (DisplayList::DrawText , reject);
17371737 addText (text, bytesCount);
17381738 addInt (count);
17391739 addFloat (x);
0 commit comments