diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-04 18:02:33 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-06 08:54:33 +0100 |
commit | 6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch) | |
tree | 372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/Libraries/LibSoftGPU | |
parent | f74251606d74b504a1379ebb893fdb5529054ea5 (diff) | |
download | serenity-6e19ab2bbce0b113b628e6f8e9b5c0640053933e.zip |
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
Diffstat (limited to 'Userland/Libraries/LibSoftGPU')
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Device.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index 3bf6e7b296..9f6d2e7082 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -1549,7 +1549,7 @@ void Device::blit_to_depth_buffer_at_raster_position(void const* input_data, GPU void Device::draw_statistics_overlay(Gfx::Bitmap& target) { static Core::ElapsedTimer timer; - static String debug_string; + static DeprecatedString debug_string; static int frame_counter; frame_counter++; @@ -1566,18 +1566,18 @@ void Device::draw_statistics_overlay(Gfx::Bitmap& target) int num_rendertarget_pixels = m_frame_buffer->rect().size().area(); StringBuilder builder; - builder.append(String::formatted("Timings : {:.1}ms {:.1}FPS\n", + builder.append(DeprecatedString::formatted("Timings : {:.1}ms {:.1}FPS\n", static_cast<double>(milliseconds) / frame_counter, (milliseconds > 0) ? 1000.0 * frame_counter / milliseconds : 9999.0)); - builder.append(String::formatted("Triangles : {}\n", g_num_rasterized_triangles)); - builder.append(String::formatted("SIMD usage : {}%\n", g_num_quads > 0 ? g_num_pixels_shaded * 25 / g_num_quads : 0)); - builder.append(String::formatted("Pixels : {}, Stencil: {}%, Shaded: {}%, Blended: {}%, Overdraw: {}%\n", + builder.append(DeprecatedString::formatted("Triangles : {}\n", g_num_rasterized_triangles)); + builder.append(DeprecatedString::formatted("SIMD usage : {}%\n", g_num_quads > 0 ? g_num_pixels_shaded * 25 / g_num_quads : 0)); + builder.append(DeprecatedString::formatted("Pixels : {}, Stencil: {}%, Shaded: {}%, Blended: {}%, Overdraw: {}%\n", g_num_pixels, g_num_pixels > 0 ? g_num_stencil_writes * 100 / g_num_pixels : 0, g_num_pixels > 0 ? g_num_pixels_shaded * 100 / g_num_pixels : 0, g_num_pixels_shaded > 0 ? g_num_pixels_blended * 100 / g_num_pixels_shaded : 0, num_rendertarget_pixels > 0 ? g_num_pixels_shaded * 100 / num_rendertarget_pixels - 100 : 0)); - builder.append(String::formatted("Sampler calls: {}\n", g_num_sampler_calls)); + builder.append(DeprecatedString::formatted("Sampler calls: {}\n", g_num_sampler_calls)); debug_string = builder.to_string(); |