1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

Meta+Userland: Pass Gfx::IntSize by value

Just two ints like Gfx::IntPoint.
This commit is contained in:
MacDue 2022-12-06 21:35:32 +00:00 committed by Andreas Kling
parent e011eafd37
commit 27fae78335
63 changed files with 142 additions and 142 deletions

View file

@ -821,7 +821,7 @@ void Device::rasterize_triangle(Triangle& triangle)
});
}
Device::Device(Gfx::IntSize const& size)
Device::Device(Gfx::IntSize size)
: m_frame_buffer(FrameBuffer<GPU::ColorType, GPU::DepthType, GPU::StencilType>::try_create(size).release_value_but_fixme_should_propagate_errors())
{
m_options.scissor_box = m_frame_buffer->rect();
@ -1361,7 +1361,7 @@ ALWAYS_INLINE void Device::shade_fragments(PixelQuad& quad)
quad.out_color.set_w(quad.out_color.w() * quad.coverage);
}
void Device::resize(Gfx::IntSize const& size)
void Device::resize(Gfx::IntSize size)
{
auto frame_buffer_or_error = FrameBuffer<GPU::ColorType, GPU::DepthType, GPU::StencilType>::try_create(size);
m_frame_buffer = MUST(frame_buffer_or_error);
@ -1711,7 +1711,7 @@ Gfx::IntRect Device::get_rasterization_rect_of_size(Gfx::IntSize size) const
extern "C" {
GPU::Device* serenity_gpu_create_device(Gfx::IntSize const& size)
GPU::Device* serenity_gpu_create_device(Gfx::IntSize size)
{
return make<SoftGPU::Device>(size).leak_ptr();
}