Do not call DrawTextBlob for performance overlay text when using Impeller (flutter/engine#46307)

This commit is contained in:
Jason Simmons 2023-09-27 07:44:51 -07:00 committed by GitHub
parent 8656e6b1d4
commit 75dcef5f45

View File

@ -57,10 +57,10 @@ void VisualizeStopWatch(DlCanvas* canvas,
if (impeller_enabled) {
canvas->DrawTextFrame(impeller::MakeTextFrameFromTextBlobSkia(text),
x + label_x, y + height + label_y, paint);
return;
}
#endif // IMPELLER_SUPPORTS_RENDERING
canvas->DrawTextBlob(text, x + label_x, y + height + label_y, paint);
return;
}
}