diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-09-30 15:50:47 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-10-17 23:33:13 +0200 |
commit | b5d51dd2636935471447fc741ffbb95c62e37f94 (patch) | |
tree | d437a0a5114788c529692628729cdc3169ec4b2e /components/compositing/compositor_thread.rs | |
parent | 00e2a1c62a04ae337f9008dcea8e265edd2d3ef4 (diff) | |
download | servo-b5d51dd2636935471447fc741ffbb95c62e37f94.tar.gz servo-b5d51dd2636935471447fc741ffbb95c62e37f94.zip |
Switch to using WebRender hit testing
This trades quite a bit of complicated code in Servo for few more
messages and a significant performance improvement. In particular,
WebRender can search the entire display list at once instead of
ping-ponging down the pipeline tree. This allows us to send mouse
events to the correct pipeline immediately.
Diffstat (limited to 'components/compositing/compositor_thread.rs')
-rw-r--r-- | components/compositing/compositor_thread.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/compositing/compositor_thread.rs b/components/compositing/compositor_thread.rs index 03a7b46c7c0..2fc1373da56 100644 --- a/components/compositing/compositor_thread.rs +++ b/components/compositing/compositor_thread.rs @@ -158,8 +158,6 @@ pub enum Msg { /// (e.g. SetFrameTree) at the time that we send it an ExitMsg. ShutdownComplete, - /// Scroll a page in a window - ScrollFragmentPoint(webrender_api::ClipId, Point2D<f32>, bool), /// Alerts the compositor that the given pipeline has changed whether it is running animations. ChangeRunningAnimationsState(PipelineId, AnimationState), /// Replaces the current frame tree, typically called during main frame navigation. @@ -195,6 +193,7 @@ pub enum Msg { PendingPaintMetric(PipelineId, Epoch), /// The load of a page has completed LoadComplete(TopLevelBrowsingContextId), + } impl Debug for Msg { @@ -202,7 +201,6 @@ impl Debug for Msg { match *self { Msg::Exit => write!(f, "Exit"), Msg::ShutdownComplete => write!(f, "ShutdownComplete"), - Msg::ScrollFragmentPoint(..) => write!(f, "ScrollFragmentPoint"), Msg::ChangeRunningAnimationsState(..) => write!(f, "ChangeRunningAnimationsState"), Msg::SetFrameTree(..) => write!(f, "SetFrameTree"), Msg::Recomposite(..) => write!(f, "Recomposite"), |