mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Do not call DrawTextBlob for performance overlay text when using Impeller (flutter/engine#46307)
This commit is contained in:
parent
8656e6b1d4
commit
75dcef5f45
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user