mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
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 :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/linusg
Commit: 6e19ab2bbc
Pull-request: https://github.com/SerenityOS/serenity/pull/16311
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/MacDue
2006 changed files with 11635 additions and 11636 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue