Truly independent web browser
LibWebView: Remove the unused backing store release hook
Andreas Kling5c8b75d099bc
diff --git a/Libraries/LibWebView/ViewImplementation.cpp b/Libraries/LibWebView/ViewImplementation.cppindex 61ec32fffe6..be602d8b696 100644--- a/Libraries/LibWebView/ViewImplementation.cpp+++ b/Libraries/LibWebView/ViewImplementation.cpp@@ -243,9 +243,7 @@ void ViewImplementation::server_did_paint(Badge<WebContentPage>, i32 bitmap_id,dbgln_if(COMPOSITOR_DEBUG, "[Compositor] UI received presented bitmap {} for page {} size={}x{} did_swap={} front={}",bitmap_id, page().id(), size.width(), size.height(), did_swap_bitmap, m_front_bitmap.id);- auto bitmap_to_release = did_swap_bitmap ? previous_front_bitmap_id : bitmap_id;- if (!defer_backing_store_release(bitmap_to_release))- release_backing_store(bitmap_to_release);+ release_backing_store(did_swap_bitmap ? previous_front_bitmap_id : bitmap_id);if (did_swap_bitmap)did_accept_presented_backing_store(bitmap_id, damage_rect);diff --git a/Libraries/LibWebView/ViewImplementation.h b/Libraries/LibWebView/ViewImplementation.hindex fd8cdf5355d..2082761c691 100644--- a/Libraries/LibWebView/ViewImplementation.h+++ b/Libraries/LibWebView/ViewImplementation.h@@ -603,7 +603,6 @@ protected:virtual Web::Clipboard::SystemClipboardItem clipboard_item() const;virtual void insert_clipboard_item(Web::Clipboard::SystemClipboardItem);- virtual bool defer_backing_store_release(i32) { return false; }virtual void did_accept_presented_backing_store(i32, Gfx::IntRect) { }void release_backing_store(i32 bitmap_id);static Gfx::IntRect rect_fitting_frame(Gfx::IntSize frame_size, Gfx::IntSize target_size);