Do not call DrawTextBlob for performance overlay text when using Impeller (flutter/engine#46307)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user