Use anti-aliasing when drawing text in the performance overlay (flutter/engine#7445)

The engine dropped the ability to draw non anti-aliased text in
a10b062df0

Fixes https://github.com/flutter/flutter/issues/26387
This commit is contained in:
Jason Simmons 2019-01-10 15:28:48 -08:00 committed by GitHub
parent 6bd9431a0c
commit 2cc1104dd0

View File

@ -19,6 +19,7 @@ void DrawStatisticsText(SkCanvas& canvas,
paint.setTextSize(15);
paint.setLinearText(false);
paint.setColor(SK_ColorGRAY);
paint.setAntiAlias(true);
canvas.drawText(string.c_str(), string.size(), x, y, paint);
}