From c5170211b1495a26b582a047b83ffa9570084f19 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 10 Jan 2019 15:10:56 -0800 Subject: [PATCH] Use anti-aliasing when drawing text in the performance overlay The engine dropped the ability to draw non anti-aliased text in https://fuchsia.googlesource.com/third_party/freetype2/+/a10b062df0c8958d69377aa04ea6554a9961a111 Fixes https://github.com/flutter/flutter/issues/26387 --- flow/layers/performance_overlay_layer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/flow/layers/performance_overlay_layer.cc b/flow/layers/performance_overlay_layer.cc index 1ec2eeaa3b9bd..210812576a1e1 100644 --- a/flow/layers/performance_overlay_layer.cc +++ b/flow/layers/performance_overlay_layer.cc @@ -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); }