LibWebView+WebContent: Move backing store allocation into WebContent

In the upcoming changes, we are going to switch macOS to using an
IOSurface for the backing store. This change will simplify the process
of sharing an IOSurface between processes because we already have the
MachPortServer running in the browser, and WebContent knows how to
locate the corresponding server.
This commit is contained in:
Aliaksandr Kalenik
2024-06-17 18:50:57 +03:00
committed by Andreas Kling
parent cbbe49cdf0
commit be2c484bb6
Notes: sideshowbarker 2024-07-17 05:13:53 +09:00
14 changed files with 158 additions and 94 deletions

View File

@@ -1,8 +1,6 @@
#include <LibURL/URL.h>
#include <LibIPC/File.h>
#include <LibCore/AnonymousBuffer.h>
#include <LibGfx/Rect.h>
#include <LibGfx/ShareableBitmap.h>
#include <LibWeb/CSS/PreferredColorScheme.h>
#include <LibWeb/CSS/PreferredContrast.h>
#include <LibWeb/CSS/PreferredMotion.h>
@@ -28,7 +26,6 @@ endpoint WebContentServer
reload(u64 page_id) =|
traverse_the_history_by_delta(u64 page_id, i32 delta) =|
add_backing_store(u64 page_id, i32 front_bitmap_id, Gfx::ShareableBitmap front_bitmap, i32 back_bitmap_id, Gfx::ShareableBitmap back_bitmap) =|
ready_to_paint(u64 page_id) =|
set_viewport_size(u64 page_id, Web::DevicePixelSize size) =|