diff --git a/patches/components/paint/paint.rs.patch b/patches/components/paint/paint.rs.patch index 23cd92a..50c2d96 100644 --- a/patches/components/paint/paint.rs.patch +++ b/patches/components/paint/paint.rs.patch @@ -1,6 +1,6 @@ --- original +++ modified -@@ -15,14 +15,15 @@ +@@ -15,14 +15,13 @@ use crossbeam_channel::Sender; use dpi::PhysicalSize; use embedder_traits::{ @@ -12,13 +12,13 @@ use euclid::{Scale, Size2D}; use image::RgbaImage; -use log::debug; - #[cfg(feature = "webgl")] - use log::warn; +-#[cfg(feature = "webgl")] +-use log::warn; +use log::{debug, warn}; use paint_api::rendering_context::RenderingContext; use paint_api::{ PaintMessage, PaintProxy, PainterSurfmanDetails, PainterSurfmanDetailsMap, -@@ -33,7 +34,7 @@ +@@ -33,7 +32,7 @@ }; use profile_traits::path; use profile_traits::time::{self as profile_time}; @@ -27,7 +27,7 @@ use servo_base::id::{PainterId, PipelineId, WebViewId}; #[cfg(feature = "webgl")] use servo_canvas_traits::webgl::{WebGLContextId, WebGLThreads}; -@@ -592,6 +593,44 @@ +@@ -592,6 +591,44 @@ painter.enable_lcp_calculation(&webview_id); } }, @@ -72,7 +72,7 @@ } } -@@ -649,6 +688,70 @@ +@@ -649,6 +686,70 @@ sender.send(ProcessReports::new(reports)); } @@ -143,7 +143,7 @@ /// Handle messages sent to `Paint` during the shutdown process. In general, /// the things `Paint` can do in this state are limited. It's very important to /// answer any synchronous messages though as other threads might be waiting on the -@@ -801,6 +904,9 @@ +@@ -801,6 +902,9 @@ #[cfg(feature = "webxr")] self.webxr_main_thread.borrow_mut().run_one_frame(); @@ -153,7 +153,7 @@ for painter in &self.painters { painter.borrow_mut().perform_updates(); } -@@ -854,6 +960,10 @@ +@@ -854,6 +958,10 @@ if self.shutdown_state() != ShutdownState::NotShuttingDown { return; }