mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
LibAccelGfx+LibWeb: Use framebuffer object instead of EGLs PBuffer
Framebuffer object is allocated using OpenGL's API and is not platform specific which means it could be used on both macOS and Linux unlike EGL specific PBuffer.
This commit is contained in:
parent
99caf4e649
commit
6d1a1daff9
12 changed files with 70 additions and 132 deletions
|
@ -164,8 +164,7 @@ void PageHost::paint(Web::DevicePixelRect const& content_rect, Gfx::Bitmap& targ
|
|||
|
||||
if (s_use_gpu_painter) {
|
||||
#ifdef HAS_ACCELERATED_GRAPHICS
|
||||
auto canvas = AccelGfx::Canvas::create(AccelGfx::Context::the(), target);
|
||||
m_accelerated_painter->set_canvas(canvas);
|
||||
m_accelerated_painter->set_target_bitmap(target);
|
||||
Web::Painting::PaintingCommandExecutorGPU painting_command_executor(*m_accelerated_painter);
|
||||
recording_painter.execute(painting_command_executor);
|
||||
m_accelerated_painter->flush();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue