mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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:
committed by
Andreas Kling
parent
cbbe49cdf0
commit
be2c484bb6
Notes:
sideshowbarker
2024-07-17 05:13:53 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/be2c484bb6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/233 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/bugaevc
@@ -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) =|
|
||||
|
||||
Reference in New Issue
Block a user