mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Remove EventLoopWaker
from Constellation (#30101)
* remove event_loop_waker that is always None * remove None event_loop_waker form InitialScriptState * fix formatting * remove None event_loop_waker from ScriptThread * remove None EventLoopWaker from Window * remove None and use of wake_after_send in webgl code
This commit is contained in:
parent
83a46f68db
commit
8255e8e318
7 changed files with 15 additions and 78 deletions
|
@ -38,7 +38,7 @@ use canvas_traits::webgl::WebGLPipeline;
|
|||
use compositor::ScrollTreeNodeId;
|
||||
use crossbeam_channel::{Receiver, RecvTimeoutError, Sender};
|
||||
use devtools_traits::{DevtoolScriptControlMsg, ScriptToDevtoolsControlMsg, WorkerId};
|
||||
use embedder_traits::{Cursor, EventLoopWaker};
|
||||
use embedder_traits::Cursor;
|
||||
use euclid::{default::Point2D, Length, Rect, Scale, Size2D, UnknownUnit, Vector2D};
|
||||
use gfx_traits::Epoch;
|
||||
use http::HeaderMap;
|
||||
|
@ -687,8 +687,6 @@ pub struct InitialScriptState {
|
|||
pub layout_is_busy: Arc<AtomicBool>,
|
||||
/// Application window's GL Context for Media player
|
||||
pub player_context: WindowGLContext,
|
||||
/// Mechanism to force the compositor to process events.
|
||||
pub event_loop_waker: Option<Box<dyn EventLoopWaker>>,
|
||||
}
|
||||
|
||||
/// This trait allows creating a `ScriptThread` without depending on the `script`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue