1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibGL+LibGPU+LibSoftGPU: Rename blit_color_buffer_to

This makes it consistent with our other `blit_from_color_buffer` and
paves the way for a third method that will be introduced in one of the
next commits.
This commit is contained in:
Jelle Raaijmakers 2022-09-04 19:56:00 +02:00 committed by Linus Groh
parent 1d36bfdac1
commit eb81b66b4e
4 changed files with 11 additions and 11 deletions

View file

@ -1458,6 +1458,14 @@ GPU::ImageDataLayout Device::depth_buffer_data_layout(Vector2<u32> size, Vector2
};
}
void Device::blit_from_color_buffer(Gfx::Bitmap& target)
{
m_frame_buffer->color_buffer()->blit_flipped_to_bitmap(target, m_frame_buffer->rect());
if constexpr (ENABLE_STATISTICS_OVERLAY)
draw_statistics_overlay(target);
}
void Device::blit_from_color_buffer(void* output_data, Vector2<i32> input_offset, GPU::ImageDataLayout const& output_layout)
{
auto const& output_selection = output_layout.selection;
@ -1521,14 +1529,6 @@ void Device::blit_to_depth_buffer_at_raster_position(void const* input_data, GPU
dbgln("Pixel conversion failed: {}", conversion_result.error().string_literal());
}
void Device::blit_color_buffer_to(Gfx::Bitmap& target)
{
m_frame_buffer->color_buffer()->blit_flipped_to_bitmap(target, m_frame_buffer->rect());
if constexpr (ENABLE_STATISTICS_OVERLAY)
draw_statistics_overlay(target);
}
void Device::draw_statistics_overlay(Gfx::Bitmap& target)
{
static Core::ElapsedTimer timer;