From 25188afcb2782be099eb2ca56f3ecf40ff106859 Mon Sep 17 00:00:00 2001 From: jiangwenyu Date: Mon, 16 Oct 2023 12:28:48 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9fps=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC=EF=BC=8C=E4=BE=BF=E4=BA=8E=E8=A7=82=E5=AF=9F?= =?UTF-8?q?fps=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangwenyu --- .../render_service/core/pipeline/rs_base_render_engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/display_server/rosen/modules/render_service/core/pipeline/rs_base_render_engine.cpp b/display_server/rosen/modules/render_service/core/pipeline/rs_base_render_engine.cpp index 7a18dc3..7d20b42 100644 --- a/display_server/rosen/modules/render_service/core/pipeline/rs_base_render_engine.cpp +++ b/display_server/rosen/modules/render_service/core/pipeline/rs_base_render_engine.cpp @@ -64,7 +64,7 @@ void RSBaseRenderEngine::PostProcessOutput(RSPaintFilterCanvas& canvas, [[maybe_ paint.setAntiAlias(true); paint.setStyle(SkPaint::kFill_Style); paint.setStrokeJoin(SkPaint::kRound_Join); - paint.setARGB(0xaa, 0xff, 0xff, 0xff); // set the font color to white with some transparency. + paint.setARGB(0xaa, 0xff, 0x00, 0x00); // set the font color to white with some transparency. char fpsMsg[BUFFER_SIZE] = { 0 }; if (fps > MAX_FPS || fps < 0) { sprintf(fpsMsg, "FPS ERROR"); @@ -72,7 +72,7 @@ void RSBaseRenderEngine::PostProcessOutput(RSPaintFilterCanvas& canvas, [[maybe_ sprintf(fpsMsg, "%.1f", fps); } SkFont font; - const float fontSize = 16; + const float fontSize = 40; font.setSize(fontSize); canvas.drawString(fpsMsg, 1.0f, fontSize, font, paint); #endif -- Gitee